Ruby latest stable (v1_9_3_392) - 0 notes - Class: Process
daemon(p1 = v1, p2 = v2) public

Detach the process from controlling terminal and run in the background as system daemon. Unless the argument nochdir is true (i.e. non false), it changes the current working directory to the root (“/”). Unless the argument noclose is true, daemon() will redirect standard input, standard output and standard error to /dev/null. Return zero on success, or raise one of Errno::*.

Show source
Register or log in to add new notes.