r7478: fixed a problem with a backgrounded smbd looping to handle continuous
authorAndrew Tridgell <tridge@samba.org>
Sat, 11 Jun 2005 02:50:47 +0000 (02:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:57 +0000 (13:17 -0500)
tty related signals
(This used to be commit db2b507adde8a28524cb9bff3558e5c339276767)

source4/smbd/server.c

index 075076d30e789930343780354c4a2c56aa5acd33..c2646ff8253132349506f115bd798a9d0920ef01 100644 (file)
@@ -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);
        }