in reply to Re^4: run a background process
in thread run a background process

Then I don't see why a classic fork+exec shouldn't do it and I guess I can't be of more help to you than this, sorry...

Replies are listed 'Best First'.
Re^6: run a background process
by Anonymous Monk on Jul 15, 2005 at 09:28 UTC
    It's ok, problem solved. I just needed to close stdin and stdout for the cgi stuff to end.

    And had to use 'setsid' or the program dies whenever the web server goes down.