2) call _exit(), not exit() from subprocess to prevent stdio buffers from
being flushed twice
CVS patchset: 998
CVS date: 1996/08/30 19:17:33
error(RPMERR_RENAME, "rename of %s to %s failed: %s\n",
prefixedFileList[i], newpath, strerror(errno));
if (replacedList) free(replacedList);
+ free(newpath);
return 2;
}
}
}
+ freeHeader(h);
+
return 0;
}
execvp(args[0], args);
- exit(-1);
+ _exit(-1);
}
close(p[0]);
}
if (doFork)
- exit(0);
+ _exit(0);
return 0;
}