projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Syntax error
[oweals/busybox.git]
/
init
/
start_stop_daemon.c
diff --git
a/init/start_stop_daemon.c
b/init/start_stop_daemon.c
index ed4503caf31c346387c806d7a04703376658d345..5765261834369ad38311a19833cb5c7c993b75fe 100644
(file)
--- a/
init/start_stop_daemon.c
+++ b/
init/start_stop_daemon.c
@@
-16,9
+16,9
@@
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
-#include "pwd.h"
#include "busybox.h"
#include "busybox.h"
+#include "pwd_.h"
static int start = 0;
static int stop = 0;
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) ) {
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;
}
if (strncmp (buf, exec, strlen(exec)) == 0)
return 1;
}