Skip to content

Commit

Permalink
ctdb-event: Never fork to become daemon in eventd
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Amitay Isaacs <[email protected]>
  • Loading branch information
martin-schwenke authored and Amitay Isaacs committed Nov 6, 2018
1 parent 4e6bd42 commit e952f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctdb/event/event_daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e952f03

Please sign in to comment.