summaryrefslogtreecommitdiff
path: root/source4/lib/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/events.c')
-rw-r--r--source4/lib/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/events.c b/source4/lib/events.c
index 298aa6a7b8..4ae7cad8af 100644
--- a/source4/lib/events.c
+++ b/source4/lib/events.c
@@ -406,6 +406,7 @@ int event_loop_once(struct event_context *ev)
the event, so this must be a bug. This is a
fatal error. */
DEBUG(0,("EBADF on event_loop_once - exiting\n"));
+ ev->exit.code = EBADF;
return -1;
}