add an fd event and don't wait for any event,
in the standard process model we need to keep
the parent arrounde forever so that the startup script
can kill all processes by the process group.
metze
event_add_fd(event_ctx, event_ctx, 0, EVENT_FD_READ,
server_stdin_handler,
discard_const(binary_name));
+ } else {
+ event_add_fd(event_ctx, event_ctx, 0, 0,
+ server_stdin_handler,
+ discard_const(binary_name));
}
-
if (max_runtime) {
event_add_timed(event_ctx, event_ctx,
timeval_current_ofs(max_runtime, 0),