diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-06-07 08:33:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:46 -0500 |
commit | c3c61bddc966d72bd37cba67c4b65097f45d2163 (patch) | |
tree | 61c25838fa177304ed56d9ef566585caf9c31d20 /source4/smbd/server.c | |
parent | 3feec91e6818c674a727ce67320580ca3175ae92 (diff) | |
download | samba-c3c61bddc966d72bd37cba67c4b65097f45d2163.tar.gz samba-c3c61bddc966d72bd37cba67c4b65097f45d2163.tar.xz samba-c3c61bddc966d72bd37cba67c4b65097f45d2163.zip |
r7356: fixed the problem mkaplan reported with not being able to run without -i
(This used to be commit eebca142e5a8e4aa25951d25b628c27a8fdbd046)
Diffstat (limited to 'source4/smbd/server.c')
-rw-r--r-- | source4/smbd/server.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c index d30bcd66481..3a81e507862 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()); |