summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index 075076d30e..c2646ff825 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -215,6 +215,9 @@ static int binary_smbd_main(int argc, const char *argv[])
if (interactive) {
/* catch EOF on stdin */
+#ifdef SIGTTIN
+ signal(SIGTTIN, SIG_IGN);
+#endif
event_add_fd(event_ctx, event_ctx, 0, EVENT_FD_READ,
server_stdin_handler, NULL);
}