• Poul-Henning Kamp's avatar
    Improve the "-d" and "-d -d" facilities. · b751efaf
    Poul-Henning Kamp authored
    When we close a CLI and it had fd# 0 and/or fd#1, reopen these
    as /dev/null so the will not be reused for the CLI pipe to the
    child on next restart, otherwise stdout/stderr output from the
    manager would get sent there and confuse the clients CLI reader.
    
    Don't double free a pointer to the CLI buffer.
    
    Accept non-zero results from cli_readres() errors are non-fatal.
    
    Use stderr more consistently for manager debugging.
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@749 d4fa192b-c00b-0410-8231-f00ffab90ce4
    b751efaf
mgt_child.c 6.61 KB