Re: How do I daemonize a process?



On Mon, 23 Jul 2007 01:38:40 -0700
Garrett Cooper <youshi10@xxxxxxxxxxxxxxxx> wrote:

As the subject suggests I'm trying to determine how I can
daemonize a C process, outside of using the rc infrastructure, so
that it won't exit when the TTY exists. Does anyone know any quick
references or examples? Thanks,

The daemonize() function in this small program of mine:
http://hcl-club.lu/svn/development/c/console%20c/fetchiterd/fetchiterd.c
is the right portable way to do it according to "Advanced Programming
in the UNIX Environment" by Stevens and Rago.
(I love that book)

Regards,
Jona
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: How do I daemonize a process?
    ... daemonize a C process, outside of using the rc infrastructure, so that it won't exit when the TTY exists. ...
    (freebsd-hackers)
  • Re: How do I daemonize a process?
    ... daemonize a C process, outside of using the rc infrastructure, so ... that it won't exit when the TTY exists. ...
    (freebsd-hackers)
  • Re: How do I daemonize a process?
    ... daemonize a C process, outside of using the rc infrastructure, so that it won't exit when the TTY exists. ...
    (freebsd-hackers)
  • Nuby Q: Daemonize (other materials have been read!)
    ... I've read the other references to daemonizing a process in ruby, ... I am trying to write a function which will daemonize the current script ... exit if fork ...
    (comp.lang.ruby)
  • How do I daemonize a process?
    ... As the subject suggests I'm trying to determine how I can daemonize a C process, outside of using the rc infrastructure, so that it won't exit when the TTY exists. ... Does anyone know any quick references or examples? ...
    (freebsd-hackers)