<<On Wed, 7 Jun 2000 22:09:06 +0200, Bernd Walter <[EMAIL PROTECTED]> said:

>> current process? Is it safe if I use proc0 to pass the proc structure to
>> call socreate() and sobind()? How safe it is to use curproc
>> structure? Somebody mentioned that it will not work in interrupt
>> handlers.

proc0 is passed because I didn't think things completely through when
the socket layer was taught not to accept process arguments.  In most
if not all cases the process parameter should be passed as nil,
rather than &proc0, because the code uses this value to determine
whether or not it is safe to sleep.  Some of the code, however, is
buggy in that it does not check for a null process pointer and
proceeds to dereference it.

-GAWollman



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to