Skip to content
  • Leigh B Stoller's avatar
    Fix the AuditFork() to prevent the loss of STDERR. Turns out · b5db8735
    Leigh B Stoller authored
    (something I just managed to remember) is that if you call the shell
    without STDERR=2, then the shell has no place to send STDERR. The
    only way to get this correct is to use POSIX::dup2 instead of the
    standard perl open function. Well, I bet there is a way (or 10 ways)
    to do this, but this is one that stumbled onto. libaudit does a lot
    of descriptor messing around.
    
    BTW; this is also why we sometimes lose STDERR from the XMLRPC server.
    b5db8735