summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-11 02:50:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:57 -0500
commitb8c8da4a50e7dd7d791ab9cd3803666f7c95acb5 (patch)
treea246652dc188b86bf1d1d959ef088728aad3c8f4
parent16a5d7c1755ece7f93db0eba42844152c916c11d (diff)
downloadsamba-b8c8da4a50e7dd7d791ab9cd3803666f7c95acb5.tar.gz
samba-b8c8da4a50e7dd7d791ab9cd3803666f7c95acb5.tar.bz2
samba-b8c8da4a50e7dd7d791ab9cd3803666f7c95acb5.zip
r7478: fixed a problem with a backgrounded smbd looping to handle continuous
tty related signals (This used to be commit db2b507adde8a28524cb9bff3558e5c339276767)
-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);
}