Projects
Browse Source     Search     Timeline     Wiki

Changeset 23035

Show
Ignore:
Timestamp:
02/07/07 08:34:09 (22 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/4968241> spurious logging from the libraries used by the various importers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/launchd_core_logic.c

    r23026 r23035  
    18041804        job_assumes(j, socketpair(AF_UNIX, SOCK_STREAM, 0, execspair) != -1); 
    18051805 
    1806         if (job_assumes(j, pipe(oepair) != -1)) { 
     1806        if (!j->legacy_mach_job && job_assumes(j, pipe(oepair) != -1)) { 
    18071807                j->log_redirect_fd = _fd(oepair[0]); 
    18081808                job_assumes(j, fcntl(j->log_redirect_fd, F_SETFL, O_NONBLOCK) != -1); 
     
    18231823                break; 
    18241824        case 0: 
    1825                 job_assumes(j, dup2(oepair[1], STDOUT_FILENO) != -1); 
    1826                 job_assumes(j, dup2(oepair[1], STDERR_FILENO) != -1); 
    1827                 job_assumes(j, close(oepair[1]) != -1); 
     1825                if (!j->legacy_mach_job) { 
     1826                        job_assumes(j, dup2(oepair[1], STDOUT_FILENO) != -1); 
     1827                        job_assumes(j, dup2(oepair[1], STDERR_FILENO) != -1); 
     1828                        job_assumes(j, close(oepair[1]) != -1); 
     1829                } 
    18281830                job_assumes(j, close(execspair[0]) == 0); 
    18291831                /* wait for our parent to say they've attached a kevent to us */ 
     
    18461848                break; 
    18471849        default: 
    1848                 job_assumes(j, close(oepair[1]) != -1); 
     1850                if (!j->legacy_mach_job) { 
     1851                        job_assumes(j, close(oepair[1]) != -1); 
     1852                } 
    18491853                j->p = c; 
    18501854                j->forkfd = _fd(execspair[0]);