[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why SIGLOST on read()?
From: |
Samuel Thibault |
Subject: |
Why SIGLOST on read()? |
Date: |
Wed, 1 Sep 2010 21:12:06 +0200 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Hello,
screen reads /proc/pid/stat, which happened to be bogus on my box. The
problem I have is that instead of just getting -1 (EIO) or something
similar, screen got the SIGLOST signal. Indeed, _hurd_fd_error_signal
does so when the server disappears.
This seems quite problematic as POSIX doesn't say that read() might
raise signals (while write may indeed raise SIGPIPE): a posixly correct
application may then unexpectedly terminate due to a non-POSIX signal by
just read()ing some opened file from an odd translator.
Samuel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Why SIGLOST on read()?,
Samuel Thibault <=