diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-04 13:46:48 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-04 13:48:10 +0200 |
commit | f8e7077d5ca738a62386917c14aebce515955c68 (patch) | |
tree | ffa3153cbbeedc4245a57ef6e34533b193e1775d | |
parent | 9e3fc22c600e3da150e96ac5f7823835c8be4333 (diff) | |
download | samba-f8e7077d5ca738a62386917c14aebce515955c68.tar.gz samba-f8e7077d5ca738a62386917c14aebce515955c68.tar.bz2 samba-f8e7077d5ca738a62386917c14aebce515955c68.zip |
s3: Don't attempt to deregister from serverid twice
The parent has to take care of crashed child processes anyway, so we don't have
to clean up in the child
-rw-r--r-- | source3/smbd/server_exit.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/server_exit.c b/source3/smbd/server_exit.c index 1de9a0989c..b69eb4aab3 100644 --- a/source3/smbd/server_exit.c +++ b/source3/smbd/server_exit.c @@ -93,7 +93,12 @@ static void exit_server_common(enum server_exit_reason how, print_notify_send_messages(smbd_messaging_context(), 3); /* delete our entry in the serverid database. */ - serverid_deregister_self(); + if (am_parent) { + /* + * For children the parent takes care of cleaning up + */ + serverid_deregister_self(); + } #ifdef WITH_DFS if (dcelogin_atmost_once) { |