Merge branch 'master' of git://git.samba.org/samba
[kai/samba.git] / source4 / smbd / pidfile.c
index 3567846070ac4ffeb755a48bcf1db8b8bd766d2b..da3f363ff9ba6a688ecbbdd71ecc094d08c85a24 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "includes.h"
 #include "system/filesys.h"
-#include "param/param.h"
-#include "smbd/pidfile.h"
 
 /**
  * @file
@@ -57,7 +55,7 @@ pid_t pidfile_pid(const char *piddir, const char *name)
 
        ret = (pid_t)atoi(pidstr);
        
-       if (!process_exists(ret)) {
+       if (!process_exists_by_pid(ret)) {
                goto noproc;
        }