pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:1183:   //!   //! @note   //! This function only works on UNIX-like operating systems.   //!   //! @example   //! /* close all fd:s and cd to '/' */   //! Process.daemon(0, 0);   //!   //! /* Do not change working directory. Write stdout to a file called   //! access.log and stderr to error.log. */ - //! Process.daemon(1, 0, ([ "stdout": "access.log", "stderr": "error.log" ]) ); + //! Process.daemon(1, 0, ([ "stdout": "/var/log/access.log", "stderr": "/var/log/error.log" ]) );   {    array(Stdio.File) opened = ({});    Stdio.File getfd(string|object f)    {    if (stringp(f))    {    Stdio.File ret = Stdio.File(f, "crw");    opened += ({ ret });    return ret;    }