Syntax error
[oweals/busybox.git] / init / start_stop_daemon.c
index ed4503caf31c346387c806d7a04703376658d345..5765261834369ad38311a19833cb5c7c993b75fe 100644 (file)
@@ -16,9 +16,9 @@
 #include <sys/stat.h>
 #include <dirent.h>
 #include <unistd.h>
-#include "pwd.h"
 
 #include "busybox.h"
+#include "pwd_.h"
 
 static int start = 0;
 static int stop = 0;
@@ -113,6 +113,7 @@ pid_is_exec(int pid, const char *exec)
        sprintf(buf, "/proc/%d/cmdline", pid);
        fp = fopen(buf, "r");
        if (fp && fgets (buf, sizeof (buf), fp) ) {
+               fclose(fp);
            if (strncmp (buf, exec, strlen(exec)) == 0)
                return 1;
        }