diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-06-11 02:50:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:57 -0500 |
commit | b8c8da4a50e7dd7d791ab9cd3803666f7c95acb5 (patch) | |
tree | a246652dc188b86bf1d1d959ef088728aad3c8f4 | |
parent | 16a5d7c1755ece7f93db0eba42844152c916c11d (diff) | |
download | samba-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.c | 3 |
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); } |