convert calloc to xzalloc

fix sleep-on-die option
This commit is contained in:
Denis Vlasenko
2007-01-03 02:56:00 +00:00
parent bb3d0fab3b
commit 9b1381fd2f
9 changed files with 44 additions and 45 deletions

View File

@@ -15,10 +15,7 @@
void fflush_stdout_and_exit(int retval)
{
if (fflush(stdout)) {
retval = xfunc_error_retval;
}
if (die_sleep)
sleep(die_sleep);
if (fflush(stdout))
sleep_and_die();
exit(retval);
}