diff options
author | Jeremy Allison <jra@samba.org> | 2012-07-19 15:41:52 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-07-19 15:41:52 -0700 |
commit | 2922fdaaf0ab2178a1701141cc2435af33c10dc8 (patch) | |
tree | 1b1a3c9dd8eb6151f4c9c640543ca5e4dbebdfdc /source3/lib/pidfile.c | |
parent | 03a6137001c418c254505ddab694e1aefc73985d (diff) | |
download | samba-2922fdaaf0ab2178a1701141cc2435af33c10dc8.tar.gz samba-2922fdaaf0ab2178a1701141cc2435af33c10dc8.tar.bz2 samba-2922fdaaf0ab2178a1701141cc2435af33c10dc8.zip |
Move source4/smbd/pidfile into lib/util in preparation for making it in common.
Diffstat (limited to 'source3/lib/pidfile.c')
-rw-r--r-- | source3/lib/pidfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c index 987ab068e7..1170f876c3 100644 --- a/source3/lib/pidfile.c +++ b/source3/lib/pidfile.c @@ -30,7 +30,7 @@ static char *pidFile_name = NULL; /* return the pid in a pidfile. return 0 if the process (or pidfile) does not exist */ -pid_t pidfile_pid(const char *program_name) +pid_t pidfile_pid_s3(const char *program_name) { int fd; char pidstr[20]; @@ -115,7 +115,7 @@ pid_t pidfile_pid(const char *program_name) } /* create a pid file in the pid directory. open it and leave it locked */ -void pidfile_create(const char *program_name) +void pidfile_create_s3(const char *program_name) { int fd; char buf[20]; @@ -146,7 +146,7 @@ void pidfile_create(const char *program_name) smb_panic("asprintf failed"); } - pid = pidfile_pid(program_name); + pid = pidfile_pid_s3(program_name); if (pid != 0) { DEBUG(0,("ERROR: %s is already running. File %s exists and process id %d is running.\n", name, pidFile_name, (int)pid)); @@ -181,7 +181,7 @@ void pidfile_create(const char *program_name) fcntl(fd, F_SETFD, FD_CLOEXEC); } -void pidfile_unlink(void) +void pidfile_unlink_s3(void) { if (pidFile_name == NULL) { return; |