Bug 33431 - functions-compat: daemon() needs to handle --pidfile

Summary: functions-compat: daemon() needs to handle --pidfile