svn commit: trunk/busybox/e2fsprogs
vda at busybox.net
vda at busybox.net
Sat Feb 2 18:54:58 UTC 2008
Author: vda
Date: 2008-02-02 10:54:58 -0800 (Sat, 02 Feb 2008)
New Revision: 20934
Log:
fsck: don't kill pid -1! (Roy Marples <roy at marples.name>)
Modified:
trunk/busybox/e2fsprogs/fsck.c
Changeset:
Modified: trunk/busybox/e2fsprogs/fsck.c
===================================================================
--- trunk/busybox/e2fsprogs/fsck.c 2008-02-02 18:50:50 UTC (rev 20933)
+++ trunk/busybox/e2fsprogs/fsck.c 2008-02-02 18:54:58 UTC (rev 20934)
@@ -663,6 +663,12 @@
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);
More information about the busybox-cvs
mailing list