mirror of
https://github.com/sheumann/hush.git
synced 2025-01-12 14:30:54 +00:00
fsck: don't kill pid -1! (Roy Marples <roy at marples.name>)
This commit is contained in:
parent
6e602c4931
commit
30eb319103
@ -663,6 +663,12 @@ static void execute(const char *type, const char *device, const char *mntpt,
|
|||||||
for (i = num_args+1; i < argc; i++)
|
for (i = num_args+1; i < argc; i++)
|
||||||
free(argv[i]);
|
free(argv[i]);
|
||||||
|
|
||||||
|
/* No pid, so don't record an instance */
|
||||||
|
if (pid < 0) {
|
||||||
|
free(inst);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
inst->pid = pid;
|
inst->pid = pid;
|
||||||
inst->prog = argv[0];
|
inst->prog = argv[0];
|
||||||
inst->type = xstrdup(type);
|
inst->type = xstrdup(type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user