projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9657596
)
runsvdir: shrink (by Vladimir)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 29 Oct 2008 03:45:33 +0000
(
03:45
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 29 Oct 2008 03:45:33 +0000
(
03:45
-0000)
runit/runsvdir.c
patch
|
blob
|
history
diff --git
a/runit/runsvdir.c
b/runit/runsvdir.c
index
d37eaf5
..
29e747f
100644
(file)
--- a/
runit/runsvdir.c
+++ b/
runit/runsvdir.c
@@
-98,14
+98,7
@@
static void warnx(const char *m1)
static void runsv(int no, const char *name)
{
- pid_t pid;
- char *prog[3];
-
- prog[0] = (char*)"runsv";
- prog[1] = (char*)name;
- prog[2] = NULL;
-
- pid = vfork();
+ pid_t pid = vfork();
if (pid == -1) {
warn2_cannot("vfork", "");
@@
-125,7
+118,7
@@
static void runsv(int no, const char *name)
| (1 << SIGTERM)
, SIG_DFL);
#endif
- exec
vp(prog[0], prog
);
+ exec
lp("runsv", "runsv", name, NULL
);
fatal2_cannot("start runsv ", name);
}
sv[no].pid = pid;