mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: Fix smbd -i
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 22 18:40:02 CET 2012 on sn-devel-104
This commit is contained in:
parent
d1697b3eaa
commit
ffe884c8db
@ -1231,15 +1231,17 @@ extern void build_options(bool screen);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Do not initialize the parent-child-pipe before becoming
|
||||
* a daemon: this is used to detect a died parent in the child
|
||||
* process.
|
||||
*/
|
||||
status = init_before_fork();
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(0, ("init_before_fork failed: %s\n", nt_errstr(status)));
|
||||
exit(1);
|
||||
if (!interactive) {
|
||||
/*
|
||||
* Do not initialize the parent-child-pipe before becoming a
|
||||
* daemon: this is used to detect a died parent in the child
|
||||
* process.
|
||||
*/
|
||||
status = init_before_fork();
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(0, ("init_before_fork failed: %s\n", nt_errstr(status)));
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
smbd_server_conn->msg_ctx = msg_ctx;
|
||||
|
Loading…
Reference in New Issue
Block a user