diff options
Diffstat (limited to 'lib/tevent/tevent_signal.c')
-rw-r--r-- | lib/tevent/tevent_signal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/tevent/tevent_signal.c b/lib/tevent/tevent_signal.c index b87c212402..f71d9b36b0 100644 --- a/lib/tevent/tevent_signal.c +++ b/lib/tevent/tevent_signal.c @@ -255,7 +255,10 @@ struct tevent_signal *tevent_common_add_signal(struct tevent_context *ev, if (ev->pipe_fde == NULL) { if (sig_state->pipe_hack[0] == 0 && sig_state->pipe_hack[1] == 0) { - pipe(sig_state->pipe_hack); + if (pipe(sig_state->pipe_hack) == -1) { + talloc_free(se); + return NULL; + } ev_set_blocking(sig_state->pipe_hack[0], false); ev_set_blocking(sig_state->pipe_hack[1], false); } |