diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-18 18:05:55 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-18 18:05:55 -0700 |
commit | e9a589feac531379e569bc39d803b16179002cfa (patch) | |
tree | 81fcaf840fa0ed4513e4d17d6e20f47434ca5ac5 /source4/smb_server | |
parent | ade5d43c5ceb915dd2210a735a21fd9bed531dd3 (diff) | |
download | samba-e9a589feac531379e569bc39d803b16179002cfa.tar.gz samba-e9a589feac531379e569bc39d803b16179002cfa.tar.bz2 samba-e9a589feac531379e569bc39d803b16179002cfa.zip |
s4-server: kill main daemon if a task fails to initialise
When one of our core tasks fails to initialise it can now ask for the
server as a whole to die, rather than limping along in a degraded
state.
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/smb_samba3.c | 2 | ||||
-rw-r--r-- | source4/smb_server/smb_server.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/smb_samba3.c b/source4/smb_server/smb_samba3.c index 1c84392b0c..e201cdb1e9 100644 --- a/source4/smb_server/smb_samba3.c +++ b/source4/smb_server/smb_samba3.c @@ -165,7 +165,7 @@ static void samba3_smb_task_init(struct task_server *task) return; failed: - task_server_terminate(task, "Failed to startup samba3 smb task"); + task_server_terminate(task, "Failed to startup samba3 smb task", true); } /* called at smbd startup - register ourselves as a server service */ diff --git a/source4/smb_server/smb_server.c b/source4/smb_server/smb_server.c index 2811693800..9b10f66b2c 100644 --- a/source4/smb_server/smb_server.c +++ b/source4/smb_server/smb_server.c @@ -249,7 +249,7 @@ static void smbsrv_task_init(struct task_server *task) return; failed: - task_server_terminate(task, "Failed to startup smb server task"); + task_server_terminate(task, "Failed to startup smb server task", true); } /* called at smbd startup - register ourselves as a server service */ |