close() failing with ECONNRESET

2010-06-08 Thread Timo Sirainen
I see that since FreeBSD 6.3 close() can fail with: > [ECONNRESET] The underlying object was a stream socket that was > shut down by the peer before all pending data was > delivered. Could someone explain what this is useful for? I'm not aware of any other OS that doe

Re: head behaviour

2010-06-08 Thread Dominic Fandrey
On 08/06/2010 00:59, Brian Somers wrote: > On Mon, 07 Jun 2010 13:05:48 +0200, Dag-Erling Smørgrav wrote: >> Bakul Shah writes: >>> Except read doesn't do it quite right: >>> >>> $ ps | (read a; echo $a ; grep zsh) >>> PID TT STAT TIME COMMAND >> >> yeah, I forgot that it drops leading whi