thx for helping, i did what you suggested, but im not quite shure what to do with the obtained information ... i did a lsof right after forking with the pid of the child and got that:


COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
camtest.c 18397 web39 cwd DIR 0,23 2048 263424456 /var/www/web39/html/cgi-bin
camtest.c 18397 web39 rtd DIR 0,23 1024 37650436 /
camtest.c 18397 web39 txt REG 0,23 1061700 37766238 /usr/bin/perl
camtest.c 18397 web39 mem REG 0,23 67364 38240776 /lib/tls/libresolv-2.3.6.so
camtest.c 18397 web39 mem REG 0,23 17840 38240762 /lib/tls/libnss_dns-2.3.6.so
camtest.c 18397 web39 mem REG 0,23 38372 38240764 /lib/tls/libnss_files-2.3.6.so
camtest.c 18397 web39 mem REG 0,23 126656 37733628 /usr/lib/libexpat.so.1.0.0
camtest.c 18397 web39 mem REG 0,23 19764 386252810 /usr/lib/perl/5.8.8/auto/Socket/Socket.so
camtest.c 18397 web39 mem REG 0,23 96276 37749838 /usr/lib/perl5/auto/XML/Parser/Expat/Expat.so
camtest.c 18397 web39 mem REG 0,23 111304 110919694 /usr/lib/perl/5.8.8/auto/POSIX/POSIX.so
camtest.c 18397 web39 mem REG 0,23 32664 236503042 /usr/lib/perl/5.8.8/auto/Encode/Encode.so
camtest.c 18397 web39 mem REG 0,23 21868 38240738 /lib/tls/libcrypt-2.3.6.so
camtest.c 18397 web39 mem REG 0,23 1245488 38240734 /lib/tls/libc-2.3.6.so
camtest.c 18397 web39 mem REG 0,23 85010 38240774 /lib/tls/libpthread-2.3.6.so
camtest.c 18397 web39 mem REG 0,23 145136 38240754 /lib/tls/libm-2.3.6.so
camtest.c 18397 web39 mem REG 0,23 9592 38240752 /lib/tls/libdl-2.3.6.so
camtest.c 18397 web39 mem REG 0,23 15640 386301956 /usr/lib/perl/5.8.8/auto/IO/IO.so
camtest.c 18397 web39 mem REG 0,23 88164 38240648 /lib/ld-2.3.6.so
camtest.c 18397 web39 0r REG 0,23 12980 376176656 /usr/share/perl5/HTTP/Request/Common.pm
camtest.c 18397 web39 1u IPv4 3040810374 UDP server2.alido.de:44066->ns1.vpsadmin.de:domain
camtest.c 18397 web39 3w REG 0,23 1554 263423062 /var/www/web39/html/cgi-bin/test.err
camtest.c 18397 web39 4w FIFO 0,7 3040810341 pipe

is 'device 3040810374' the handle i look for? how can i close it? i dont have mod_perl, its a cgi-scipt w/o any open db.


In reply to Re^2: fork/web-cgi: how do i close all open sockets in deamon? by .rhavin
in thread fork/web-cgi: how do i close all open sockets in deamon? by .rhavin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.