← Commit list

58f3c2e01

Denis Vlasenko
Denis Vlasenko
2008-10-29
FAILED Duration: 35s

Subject

runsvdir: shrink (by Vladimir)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

runit/runsvdir.c+2 -9
@@ -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
- execvp(prog[0], prog);
+ execlp("runsv", "runsv", name, NULL);
fatal2_cannot("start runsv ", name);
}
sv[no].pid = pid;