help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error in 1.6.3 popen.c?


From: Alan Sparks
Subject: error in 1.6.3 popen.c?
Date: Thu, 24 May 2001 10:12:06 -0600

A piece of code that makes little sense from here...
popen.c lines 129-134:
    for (i = 0; i < MAXFD; i++)
       {
       if (CHILD[i] > 0)
          {
          close(CHILD[i]);
          }

Later (line 228):
    CHILD[fileno(pp)] = pid;

So the value of a CHILD element is a process ID, and it's being
close()d?
There's a couple of places this code appears.
-Alan

-- 
Alan Sparks, Sr. UNIX Administrator     asparks@quris.com
Quris, Inc.                             (720) 836-2058



reply via email to

[Prev in Thread] Current Thread [Next in Thread]