Five Pitfalls of Linux Sockets Programming (developerWorks)
Posted Sep 21, 2005 15:29 UTC (Wed) by
hppnq (guest, #14462)
In reply to:
Five Pitfalls of Linux Sockets Programming (developerWorks) by RobSeace
Parent article:
Five Pitfalls of Linux Sockets Programming (developerWorks)
EFAULT seems appropriate, yes; SIGSEGV would be disappointing.
Though, looking up a few send(2) manpages I cannot really conclude that NULL would be an invalid address (I consulted a Solaris manpage before my first comment * bangs head on table * and apparently Solaris doesn't care about EFAULT at all ;-).
But it's trivial to find out of course what Linux does in this case, I'll let you know unless you beat me to it. ;-)
(
Log in to post comments)