• Poul-Henning Kamp's avatar
    Don my plumbers outfit and twist a lot of pipes into shape: · 0482c276
    Poul-Henning Kamp authored
    When -d(ebug) is specified we fork before calling daemon.
    
    The parent process becomes a miniature cat(1) program which connects
    stdin/stdout with the management process stdin/stdout.
    
    It also knows that SIGINT should be passed on to the management process
    in order to make it DTRT.
    
    Any other cause of death for this "debugger" process will (once I
    teach the CLI about it) not affect the running varnish and therefore
    it will be possible to start varnish in debugging mode, tweak things
    a bit and CTRL-D and leave it running in the properly daemon(3)'ed
    background.
    
    The reason for this rather complicated bit of pipework is that we
    can not call daemon(3) once we have started any threads (only the
    calling thread survives) and we would loose our parent relationship
    to the cache process also.
    
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@604 d4fa192b-c00b-0410-8231-f00ffab90ce4
    0482c276
Name
Last commit
Last update
bin Loading commit data...
contrib Loading commit data...
include Loading commit data...
lib Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...