BTW, it should be (almost) trivial to make shutdown(2) also work on pipes. The only issue is that it is prototyped in <sys/socket.h>, which may seem confusing when you just want to use it for pipes. DES -- Dag-Erling Smørgrav - des at des.no