pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:172:       mapping(string:mixed) new_modifiers = (modifiers || ([])) + ([]);       if (new_modifiers->keep_signals) {    // This option is currently not supported with forkd.    m_delete(new_modifiers, "forkd");    }      #if constant(Stdio.__HAVE_SEND_FD__)    // Forkd mode requires send_fd(). -  if (zero_type(new_modifiers->forkd)) new_modifiers->forkd = forkd_default; +  if (undefinedp(new_modifiers->forkd)) +  new_modifiers->forkd = forkd_default;    if (new_modifiers->forkd && assert_forkd()) {    process_fd = Stdio.File();    forkd_pipe->    send_fd(process_fd->pipe(Stdio.PROP_BIDIRECTIONAL|Stdio.PROP_SEND_FD));    while (forkd_pipe->write("\0") < 0)    ;       m_delete(new_modifiers, "forkd");    __callback = m_delete(new_modifiers, "callback");    -  if (zero_type(new_modifiers->uid)) { +  if (undefinedp(new_modifiers->uid)) {    new_modifiers->uid = geteuid(); -  if (zero_type(new_modifiers->gid)) { +  if (undefinedp(new_modifiers->gid)) {    new_modifiers->gid = getegid();    }    if (!new_modifiers->setgroups) {    new_modifiers->setgroups = getgroups();    }    } else if (new_modifiers->noinitgroups) {    if (!new_modifiers->setgroups) {    new_modifiers->setgroups = getgroups();    }    }