HomePhabricator

(stable) Call setsid() unconditionally after daemonizing

Authored by epriestley on Mar 18 2017, 12:28 PM.

Description

(stable) Call setsid() unconditionally after daemonizing

Ref T12355. This was alright locally, but in production the system is not
thrilled about posix_isatty() from the daemonized process:

ERROR 2: posix_isatty(): expects argument 1 to be a valid stream resource

After daemonizing we never expect STDOUT to be a TTY, so skip the check.

Auditors: chad

Details

Auditors
chad
Group Auditors
Cowboy Commits
Committed
epriestleyMar 18 2017, 12:30 PM
Pushed
epriestleyMar 18 2017, 12:30 PM
Parents
rPHUe57a12f790c9: (stable) Call setsid() after the overseer dameonizes
Branches
Unknown
Tags
Unknown
Tasks
T12355: Daemons are having a rough time starting on `admin`
Build Status
Buildable 16027
Build 21249: Run Core Tests