summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-07 08:33:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:46 -0500
commitc3c61bddc966d72bd37cba67c4b65097f45d2163 (patch)
tree61c25838fa177304ed56d9ef566585caf9c31d20
parent3feec91e6818c674a727ce67320580ca3175ae92 (diff)
downloadsamba-c3c61bddc966d72bd37cba67c4b65097f45d2163.tar.gz
samba-c3c61bddc966d72bd37cba67c4b65097f45d2163.tar.bz2
samba-c3c61bddc966d72bd37cba67c4b65097f45d2163.zip
r7356: fixed the problem mkaplan reported with not being able to run without -i
(This used to be commit eebca142e5a8e4aa25951d25b628c27a8fdbd046)
-rw-r--r--source4/smbd/server.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index d30bcd6648..3a81e50786 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -213,8 +213,11 @@ static int binary_smbd_main(int argc, const char *argv[])
should hang off that */
event_ctx = event_context_init(NULL);
- /* catch EOF on stdin */
- event_add_fd(event_ctx, event_ctx, 0, EVENT_FD_READ, server_stdin_handler, NULL);
+ if (interactive) {
+ /* catch EOF on stdin */
+ event_add_fd(event_ctx, event_ctx, 0, EVENT_FD_READ,
+ server_stdin_handler, NULL);
+ }
DEBUG(0,("Using %s process model\n", model));
status = server_service_startup(event_ctx, model, lp_server_services());