Re: select() hanging after terminal killed

2011-05-26 Thread Thomas Wolff
On 29.04.2010 17:21, Christopher Faylor wrote: On Thu, Apr 29, 2010 at 05:11:00PM +0200, Corinna Vinschen wrote: On Apr 29 12:53, Thomas Wolff wrote: If a terminal gets killed, its tty/pty is not properly closed. This is likely to confuse applications and let them hang, as observed with mined (

Re: select() hanging after terminal killed

2010-04-29 Thread Matthias Andree
Thomas Wolff wrote on 2010-04-29: On 29.04.2010 13:28, Matthias Andree wrote: Am 29.04.2010 12:53, schrieb Thomas Wolff: [on closed terminal] On Linux, select() indicates an exception and EIO. On SunOS, select() indicates both an exception and input (weird), Not weird, you appear to be mis

Re: select() hanging after terminal killed

2010-04-29 Thread Christopher Faylor
On Thu, Apr 29, 2010 at 05:11:00PM +0200, Corinna Vinschen wrote: >On Apr 29 12:53, Thomas Wolff wrote: >> If a terminal gets killed, its tty/pty is not properly closed. >> This is likely to confuse applications and let them hang, as observed >> with mined (thanks Andy for the report) and joe. >>

Re: select() hanging after terminal killed

2010-04-29 Thread Corinna Vinschen
On Apr 29 12:53, Thomas Wolff wrote: > If a terminal gets killed, its tty/pty is not properly closed. > This is likely to confuse applications and let them hang, as observed > with mined (thanks Andy for the report) and joe. > > On Linux and SunOS, a subsequent read() return 0 (indicating EOF); >

Re: select() hanging after terminal killed

2010-04-29 Thread Thomas Wolff
On 29.04.2010 13:28, Matthias Andree wrote: Am 29.04.2010 12:53, schrieb Thomas Wolff: [on closed terminal] On Linux, select() indicates an exception and EIO. On SunOS, select() indicates both an exception and input (weird), Not weird, you appear to be misunderstanding select(). An I

Re: select() hanging after terminal killed

2010-04-29 Thread Matthias Andree
Am 29.04.2010 12:53, schrieb Thomas Wolff: [on closed terminal] > On Linux, select() indicates an exception and EIO. > On SunOS, select() indicates both an exception and input (weird), Not weird, you appear to be misunderstanding select(). An IEEE Std 1003.1 compliant select(): - only states th

select() hanging after terminal killed

2010-04-29 Thread Thomas Wolff
If a terminal gets killed, its tty/pty is not properly closed. This is likely to confuse applications and let them hang, as observed with mined (thanks Andy for the report) and joe. On Linux and SunOS, a subsequent read() return 0 (indicating EOF); any further read() returns -1, errno indicating