autofs: register SIGTERM for gracefull exit
authorHans Dedecker <dedeckeh@gmail.com>
Wed, 18 Oct 2017 08:00:15 +0000 (10:00 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 18 Oct 2017 10:01:51 +0000 (12:01 +0200)
commit6efeb198451a46bb8039d2892986c7f625c92649
tree3d3d97eec61d98f6ab13f433fa08c61b6ca281a8
parent01bb2b09b1d34bec5841a3fa27e7a8696dcba869
autofs: register SIGTERM for gracefull exit

Register SIGTERM to gracefully terminate mountd.
At the same time don't handle the exit in signal handler context but
let the main bail out.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Rutger Lejeune <rutger-lejeune@hotmail.com>
autofs.c
include/signal.h
signal.c