diff options
author | Martin Schwenke <martin@meltin.net> | 2018-10-19 16:18:13 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2018-11-06 07:16:15 +0100 |
commit | e952f0316b34b89a754b6805dad5c33adea7e157 (patch) | |
tree | 09bc6ee05ce33276c61e6d93c1e76a2069d27d12 /ctdb/event | |
parent | 4e6bd4249395a153c1e279a77b7a02e9574c091b (diff) | |
download | samba-e952f0316b34b89a754b6805dad5c33adea7e157.tar.gz |
ctdb-event: Never fork to become daemon in eventd
This stops ctdbd from being able to shut down eventd, since the PID it
records will be invalid. There's no need for eventd to fork.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/event')
-rw-r--r-- | ctdb/event/event_daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/event/event_daemon.c b/ctdb/event/event_daemon.c index 3cab3306b02..96b41a874e8 100644 --- a/ctdb/event/event_daemon.c +++ b/ctdb/event/event_daemon.c @@ -354,7 +354,7 @@ int main(int argc, const char **argv) ret = sock_daemon_run(e_state->ev, e_state->sockd, e_state->pidfile, - (interactive == 1), + false, false, options.pid); if (ret == EINTR) { |