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/ntp_signd | |
parent | ade5d43c5ceb915dd2210a735a21fd9bed531dd3 (diff) | |
download | samba-e9a589feac531379e569bc39d803b16179002cfa.tar.gz |
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/ntp_signd')
-rw-r--r-- | source4/ntp_signd/ntp_signd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/ntp_signd/ntp_signd.c b/source4/ntp_signd/ntp_signd.c index 8ea7fe4ff96..a9c6769821b 100644 --- a/source4/ntp_signd/ntp_signd.c +++ b/source4/ntp_signd/ntp_signd.c @@ -347,7 +347,7 @@ static void ntp_signd_task_init(struct task_server *task) char *error = talloc_asprintf(task, "Cannot create NTP signd pipe directory: %s", lp_ntp_signd_socket_directory(task->lp_ctx)); task_server_terminate(task, - error); + error, true); return; } @@ -364,7 +364,7 @@ static void ntp_signd_task_init(struct task_server *task) ntp_signd = talloc(task, struct ntp_signd_server); if (ntp_signd == NULL) { - task_server_terminate(task, "ntp_signd: out of memory"); + task_server_terminate(task, "ntp_signd: out of memory", true); return; } @@ -373,7 +373,7 @@ static void ntp_signd_task_init(struct task_server *task) /* Must be system to get at the password hashes */ ntp_signd->samdb = samdb_connect(ntp_signd, task->event_ctx, task->lp_ctx, system_session(ntp_signd, task->lp_ctx)); if (ntp_signd->samdb == NULL) { - task_server_terminate(task, "ntp_signd failed to open samdb"); + task_server_terminate(task, "ntp_signd failed to open samdb", true); return; } |