From 6254b9bd4422ad142625784bc99e72c2385918eb Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 7 Apr 2003 07:12:25 +0000 Subject: Create a pidfile, even when running in interactive mode. (This used to be commit 1d7400e679df136f03daf79788ea998c5a787f89) --- source3/nsswitch/winbindd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index c096ca9b0f..eb8a36af55 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -866,11 +866,10 @@ int main(int argc, char **argv) if (!init_names()) exit(1); - if (!interactive) { + if (!interactive) become_daemon(Fork); - pidfile_create("winbindd"); - } + pidfile_create("winbindd"); #if HAVE_SETPGID /* -- cgit