1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-23 20:59:10 +03:00

added the ability to start/stop the server from SWAT.

I needed to modify the way the pidfile is handled in nmbd and smbd to
do this. Jeremy, you may wish to look at what I've done as it probably
breaks the Whistle use of pidfiles. In particular I've removed the -f
option and instead smbd and nmbd always create a pidfile in the lock
directory.
(This used to be commit 20bb22d61b)
This commit is contained in:
Andrew Tridgell
1998-03-14 12:57:58 +00:00
parent e2b50d04ad
commit c063e9ec3e
5 changed files with 70 additions and 73 deletions

View File

@ -3106,7 +3106,7 @@ void become_daemon(void)
{
#ifndef NO_FORK_DEBUG
if (fork())
exit(0);
_exit(0);
/* detach from the terminal */
#ifdef USE_SETSID