Support daemon mode without daemon(3)

Bug #402505 reported by Albert Lee
6
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.

Revision history for this message
Albert Lee (trisk) wrote :

Patch for daemon(3).

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks, merged!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.