git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3feec91
)
r7356: fixed the problem mkaplan reported with not being able to run without -i
author
Andrew Tridgell
<tridge@samba.org>
Tue, 7 Jun 2005 08:33:17 +0000
(08:33 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:17:46 +0000
(13:17 -0500)
(This used to be commit
eebca142e5a8e4aa25951d25b628c27a8fdbd046
)
source4/smbd/server.c
patch
|
blob
|
history
diff --git
a/source4/smbd/server.c
b/source4/smbd/server.c
index d30bcd664810f8d533fbaaf6fe44e998874ed868..3a81e507862263d59201ba7cf0413e5ae1d66a1d 100644
(file)
--- 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());