OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_72-9-g79ad82c

Gerrit Code Review gerrit@openafs.org
Mon, 15 Feb 2010 13:14:08 -0800 (PST)


The following commit has been merged in the master branch:
commit 79ad82ccde98391ba59dc1234c10def78520b680
Author: Adam Megacz <adam@megacz.com>
Date:   Sun Feb 14 17:30:42 2010 -0800

    Have bosserver catch SIGTERM and shut down gracefully.
    
    Many modern process supervision systems (runsv, daemontools, sysvinit)
    expect to be able to terminate a process gracefully by sending it a
    SIGTERM; although SIGQUIT is nominally used for this purpose it seems
    to have fallen into disuse as a matter of practice.  Therefore, to
    integrate as smoothly as possible with the outside world, bosserver
    should catch SIGTERM and interpret it as a request to shut down
    gracefully.
    
    When used with process supervision (runsv or daemontools), the
    previous behavior would cause bosserver to die but leave its children
    running, and then bosserver would get restarted by the supervisor.
    The result is a situation where there would be two copies of every
    bnode process.  Mayhem ensues.
    
    Change-Id: I8690fba0af6c2b9f9613527254af915be9e76dfc
    Reviewed-on: http://gerrit.openafs.org/1310
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: Derrick Brashear <shadow@dementia.org>

 src/bozo/bnode.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

-- 
OpenAFS Master Repository