On Wed, 18 Feb 2015 21:21:10 +0000, Byron Heads wrote:

p.s. if you really-really-really need to avoid shell scripts, you can 
`exec` your program with STDIN, STDOUT and STDERR redirected to /dev/
null, passing some special argument to it. i.e. it shouldn't fork, just 
exec itself again with added command-line option. just make sure that you 
did `setsid()` and so on, so the second instance is completely detached.

Attachment: signature.asc
Description: PGP signature



Reply via email to