Re: [Newbie] send() blocks or not
From: Valentin Nechayev (netch_at_segfault.kiev.ua)
Date: 08/30/03
- Next message: Valentin Nechayev: "Re: Problems with ci -m"
- Previous message: Malcolm: "Re: graphics functions under unix..."
- In reply to: Villy Kruse: "Re: [Newbie] send() blocks or not"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 30 Aug 2003 11:43:43 +0300
>>> Villy Kruse wrote:
VK> It doesn't hurt to allow for incomplete write() or send(). If a blocked
VK> write is interrupted by write it usualy becomes a partial write returning
VK> the number of bytes actualy written, or it may return with an EINTR error.
It _cannot_ return with EINTR having partial success. If you know system
when write() can return with EINTR when at least one byte is written,
rm -rf it, immediately, and install something working.
VK> This behaviour is system dependent and is one of the things that makes
VK> SystemV and BSD signal handling different.
No tie with signal handling here.
-netch-
- Next message: Valentin Nechayev: "Re: Problems with ci -m"
- Previous message: Malcolm: "Re: graphics functions under unix..."
- In reply to: Villy Kruse: "Re: [Newbie] send() blocks or not"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]