>>>>> "KV72" == Kees Vonk 7249 24549 <[EMAIL PROTECTED]> writes:
KV72> require 'sys/syscall.ph';
KV72> for (my $i=0; $i<=255; $i++) {
KV72> syscall(&SYS_close, $i + 0); # must force numeric
KV72> }
KV72> the socket got released and I could restart the server. I
KV72> know it is a little crud, but it seems to work.
No, it is not crud. If you want your forked process to act like a
daemon, you must make sure to perform the necessary actions. That
includes closing all open file descriptors you are not using.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: [EMAIL PROTECTED] Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/