Author: tridge
Date: 2005-06-11 02:50:47 +0000 (Sat, 11 Jun 2005)
New Revision: 7478

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7478

Log:
fixed a problem with a backgrounded smbd looping to handle continuous
tty related signals

Modified:
   branches/SAMBA_4_0/source/smbd/server.c


Changeset:
Modified: branches/SAMBA_4_0/source/smbd/server.c
===================================================================
--- branches/SAMBA_4_0/source/smbd/server.c     2005-06-11 02:39:14 UTC (rev 
7477)
+++ branches/SAMBA_4_0/source/smbd/server.c     2005-06-11 02:50:47 UTC (rev 
7478)
@@ -215,6 +215,9 @@
 
        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);
        }

Reply via email to