Firewall Wizards mailing list archives

Re: Code reviews [Was: FWTK and smap/smapd]


From: Joseph S D Yao <jsdy () center osis gov>
Date: Tue, 23 Jul 2002 14:43:24 -0400

On Tue, Jul 23, 2002 at 08:31:03PM +0400, ark () eltex ru wrote:
Hmm actually i still think that handling partial write of, say, 1024 byte buffer
as socket error does not break things. It is bad style, though, and should be
avoided.

Handling a partial write as an error is more than bad style.  It is
itself an error.  The defined return value of write(2) is -1 or the
number of bytes written.  It is not guaranteed to be oneof(-1,n).

-- 
Joe Yao                         jsdy () center osis gov - Joseph S. D. Yao
OSIS Center Systems Support                                     EMT-B
-----------------------------------------------------------------------
   This message is not an official statement of OSIS Center policies.
_______________________________________________
firewall-wizards mailing list
firewall-wizards () honor icsalabs com
http://honor.icsalabs.com/mailman/listinfo/firewall-wizards


Current thread: