diff options
author | Denis Vlasenko | 2008-02-02 18:54:58 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-02-02 18:54:58 +0000 |
commit | 30eb3191030f2ceb7b596a2666abc8e455de220c (patch) | |
tree | 42101528e2397eab1469a60aecda10ac970e2b4a /e2fsprogs | |
parent | 6e602c49316bf75376467c1aeb194741e85421d4 (diff) | |
download | busybox-30eb3191030f2ceb7b596a2666abc8e455de220c.zip busybox-30eb3191030f2ceb7b596a2666abc8e455de220c.tar.gz |
fsck: don't kill pid -1! (Roy Marples <roy at marples.name>)
Diffstat (limited to 'e2fsprogs')
-rw-r--r-- | e2fsprogs/fsck.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c index 8dd9785..0122851 100644 --- a/e2fsprogs/fsck.c +++ b/e2fsprogs/fsck.c @@ -663,6 +663,12 @@ static void execute(const char *type, const char *device, const char *mntpt, for (i = num_args+1; i < argc; i++) free(argv[i]); + /* No pid, so don't record an instance */ + if (pid < 0) { + free(inst); + return; + } + inst->pid = pid; inst->prog = argv[0]; inst->type = xstrdup(type); |