Hi, I'm try to spawn long-running process with help of following code :
redirect_to("Prev_page.html") if fork(); close STDIN; close STDERR; close STDOUT; use POSIX 'setsid'; setsid or die 'cant start new session'; # Long-running code here
Unfortunatelly it mystically stops working after ~10 mins.
This code from command-line works without any problems.
Can anybody point me in right direction ?
PS: my system settings
-bash-2.05b# uname -a FreeBSD www3 4.8-RC FreeBSD 4.8-RC #0: Tue Mar 11 15:00:17 GMT 2003 + netwave@www3:/usr/obj/usr/src/sys/GENERIC i386 -bash-2.05b# perl -v This is perl, v5.8.0 built for i386-freebsd ... [Tue Mar 11 16:24:04 2003] [notice] Apache/1.3.26 (Unix) mod_perl/1.26 + mod_throttle/3.1.2 PHP/4.2.2 mod_ssl/2.8.10 OpenSSL/0.9.6f configure +d
Sincerely, Nikita Savin

In reply to Problem with for in CGI by asdfgroup

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.