[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: how do I daemonize a lua process on unix ?
- From: gary ng <garyng2000@...>
- Date: Thu, 8 Feb 2007 17:23:07 -0800 (PST)
The way I know of doing it is to double fork then dup2
the stdin/stdout/stderr handles.
I can find fork() in the posix package but don't know
how to dup2 and/or get the fileno() of io.stdin etc.
Or I need some other helper say using python to
daemonize then spawn the lua script ?
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/