s3:util: remove reinit_after_fork_pipe_handler before sending SIGTERM
authorStefan Metzmacher <metze@samba.org>
Thu, 22 Mar 2018 11:32:15 +0000 (12:32 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 24 Apr 2018 17:41:14 +0000 (19:41 +0200)
commita4d2eedafe333395d2fc1ce90fee5d63b11c6036
tree9ad7e2c3ae7ead77df30403db7b2ce1a341291f8
parentffeb2acf65ef0b669f57b3f6f047db03b2f1a6c6
s3:util: remove reinit_after_fork_pipe_handler before sending SIGTERM

We should not keep the tevent_fd active when we sending us a SIGTERM,
this is not a real problem, but due to a different bug I triggered
a 100% cpu loop. I think it's safer to idle in that case instead
of waisting a lot of energy.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/util.c