Support daemon mode without daemon(3)
Bug #402505 reported by
Albert Lee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CtrlProxy |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
The daemon(3) function was introduced in 4.4BSD and only exists on newer BSD and GNU systems. For example, SysV systems and OSes adhering only to POSIX don't provide this function.
However, you can easily reimplement it with fork() and setsid().
See the attached patch.
To post a comment you must log in.
Patch for daemon(3).