]> git.tuebingen.mpg.de Git - dss.git/commitdiff
kill: New option --wait.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 15 Oct 2017 16:08:47 +0000 (18:08 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 11 Nov 2017 15:26:09 +0000 (16:26 +0100)
Simply running "dss kill" during system shutdown to terminate the
dss process does not work as expected because the kill subcommand
exits after the signal has been sent, which might be long before the
targeted dss process terminates.

For example, the dss main process might be running its exit hook to
inform the system administrator about the fact that the dss service
is going down when the shutdown procedure already has deactivated the
network. Or the shutdown procedure kills the exit hook with SIGKILL
during its normal "killing remaining processes" phase before file
systems are unmounted.

With the --wait option, the kill subcommand will not return until the
dss process has died or the timeout expires. We hardcode the timeout
in send_signal() for the time being. It can be made configurable if
this turns out to be necessary.


No differences found