Making a Unix daemon process (was: Forking into the background (Linux))

2012-12-23 Thread Ben Finney
Hans Mulder writes: > On 24/12/12 01:50:24, Olive wrote: > > My goal is to write a script that 1) write something to stdout; then > > fork into the background, closing the stdout (and stderr, stdin) pipe. > > > > I have found this answer (forking -> setsid -> forking) > > http://stackoverflow.co

Re: Forking into the background (Linux)

2012-12-23 Thread Hans Mulder
On 24/12/12 01:50:24, Olive wrote: > My goal is to write a script that 1) write something to stdout; then > fork into the background, closing the stdout (and stderr, stdin) pipe. > > I have found this answer (forking -> setsid -> forking) > http://stackoverflow.com/a/3356154 > > However the stand

Forking into the background (Linux)

2012-12-23 Thread Olive
My goal is to write a script that 1) write something to stdout; then fork into the background, closing the stdout (and stderr, stdin) pipe. I have found this answer (forking -> setsid -> forking) http://stackoverflow.com/a/3356154 However the standard output of the child is still connected to