diff options
author | Volker Lendecke <vl@samba.org> | 2011-04-29 12:53:13 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-04-29 16:57:37 +0200 |
commit | aa5abcaf7e2844e3bd3d8e8fe26488673ad3c00e (patch) | |
tree | 7e2d9a8220b9677bf4a6a0f6b6324dc8524f8c05 /source3/winbindd/winbindd.c | |
parent | 0757688eb34ec1a22bf8c28f72416d6684756647 (diff) | |
download | samba-aa5abcaf7e2844e3bd3d8e8fe26488673ad3c00e.tar.gz samba-aa5abcaf7e2844e3bd3d8e8fe26488673ad3c00e.tar.bz2 samba-aa5abcaf7e2844e3bd3d8e8fe26488673ad3c00e.zip |
s3: Make winbindd_reinit_after_fork return NTSTATUS
Diffstat (limited to 'source3/winbindd/winbindd.c')
-rw-r--r-- | source3/winbindd/winbindd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 232f9b4c60..071b3ccdc9 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -378,6 +378,7 @@ static void winbind_msg_validate_cache(struct messaging_context *msg_ctx, { uint8 ret; pid_t child_pid; + NTSTATUS status; DEBUG(10, ("winbindd_msg_validate_cache: got validate-cache " "message.\n")); @@ -404,7 +405,10 @@ static void winbind_msg_validate_cache(struct messaging_context *msg_ctx, /* child */ - if (!winbindd_reinit_after_fork(NULL, NULL)) { + status = winbindd_reinit_after_fork(NULL, NULL); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(1, ("winbindd_reinit_after_fork failed: %s\n", + nt_errstr(status))); _exit(0); } |