summaryrefslogtreecommitdiffstats
path: root/source/lib/pidfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/pidfile.c')
-rw-r--r--source/lib/pidfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/pidfile.c b/source/lib/pidfile.c
index 726e8c1f21a..a6dc327fd7a 100644
--- a/source/lib/pidfile.c
+++ b/source/lib/pidfile.c
@@ -101,7 +101,7 @@ void pidfile_create(char *name)
}
memset(buf, 0, sizeof(buf));
- slprintf(buf, sizeof(buf) - 1, "%u\n", (unsigned int) getpid());
+ slprintf(buf, sizeof(buf) - 1, "%u\n", (unsigned int) sys_getpid());
if (write(fd, buf, sizeof(buf)) != sizeof(buf)) {
DEBUG(0,("ERROR: can't write to file %s: %s\n",
pidFile, strerror(errno)));