From: Dmitry Chistikov <dd1email@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] man через ssh
Date: Thu, 3 Mar 2011 14:32:32 +0300
Message-ID: <20110303113232.GC7411@conflux.foliandre> (raw)
In-Reply-To: <4D6F74A3.1000900@avtlg.ru>
Alexey Bochenin, Mar. 03, 2011, 13:59 +0300:
> Я ошибся, и рестарт sshd не повлиял на ситуацию с broken pipe.
Я бы вешал багу на openssh. Нужно объяснить, что в качестве следствий
наблюдается некорректная работа, скажем, "yes | head", а также приложить
вывод strace -p PID_OF_SSHD -f -e trace=process,signal за время выполнения
ssh localhost true (неплохо бы вначале убедиться, что в этом выводе
действительно видно, что реакция на SIGPIPE *не* сбрасывается на
умолчательное состояние).
> Дмитрий, Вы писали насчет странности поведения функции write(...)
> возвращающей -32 вместо стандартно описанного -1.
> Обновление до мартовского сизифа в какой-то степени помогло,
> ssh localhost -- strace -p -e write man -w bash теперь write возвращает,
> как и описано, -1.
(В данном случае "-p" быть не должно.)
> Если важно выяснить, начиная с какой версии glibc поменялось поведение
> write (кстати, правильно ли я предположил что write() реализована именно
> в glibс?, если нет - подскажите, за какими файлами наблюдать), то
> используя архив сизифа http://www.altlinux.org/Архив_Сизифа могу
> попытаться определить версию точнее.
write() - это системный вызов, реализованный в ядре, а еще, если верить
intro(2), обертка glibc (посмотрите intro(2) и syscalls(2), там написано
подробнее). Мне кажется, что наблюдавшееся тогда -32 к основному вопросу
прямого отношения не имеет, хотя, конечно, могу и ошибаться.
--
Дмитрий Чистиков
next prev parent reply other threads:[~2011-03-03 11:32 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
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 [this message]
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=20110303113232.GC7411@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