From: Dmitry Chistikov <dd1email@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] man через ssh
Date: Thu, 24 Feb 2011 15:55:27 +0300
Message-ID: <20110224125527.GA13973@conflux.foliandre> (raw)
In-Reply-To: <4D66398D.2070606@avtlg.ru>
Кстати, честно говоря, я не понимаю вот этого (последний write() в stdout
потомка):
> [pid 27496] write(1, " unfinished .\nWhen the call retu"..., 4096) = -32
Почему он возвращает -32, а не -1?
> Да, если не заворачивать все это дело в ssh, то bzip2 молчит. Ниже
> приведен strace по сигналам, но я не вижу SIGPIPE в листинге
>
> $ ssh localhost -- strace -f -e trace=signal,process -- man -w strace
> [...]
Он там есть, но не выставляется, а уже наблюдается:
> [pid 24150] rt_sigprocmask(SIG_BLOCK, NULL, [PIPE], 8) = 0
По-видимому, его выставяет sshd? Вообще, в его коде реакция на SIGPIPE
для порождаемых сессий сбрасывается на умолчательный (SIG_DFL) вариант.
Есть ли разница между
$ ssh localhost -- strace -e trace=signal sh -c true
и
$ strace -e trace=signal sh -c true
?
(У меня ее нет и по вызовам rt_sigprocmask видно, что SIGPIPE не
игнорируется).
--
Дмитрий Чистиков
next prev parent reply other threads:[~2011-02-24 12:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 6:07 Alexey Bochenin
2011-02-24 9:28 ` Dmitry Chistikov
2011-02-24 10:57 ` Alexey Bochenin
2011-02-24 12:55 ` Dmitry Chistikov [this message]
2011-02-24 16:46 ` Alexey Bochenin
2011-02-24 18:28 ` Dmitry Chistikov
2011-02-24 19:08 ` Dmitry Chistikov
2011-02-25 8:49 ` Alexey Bochenin
2011-03-03 9:45 ` Dmitry Chistikov
2011-03-03 10:59 ` Alexey Bochenin
2011-03-03 11:32 ` Dmitry Chistikov
2011-03-04 12:11 ` Alexey Bochenin
2011-03-05 7:40 ` Dmitry Chistikov
2011-03-28 10:58 ` Dmitry Chistikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110224125527.GA13973@conflux.foliandre \
--to=dd1email@gmail.com \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git