Print stack trace when execting due to fatal problem or bug

darcs-hash:20070121150341-ac50b-66b86014963568bf402a76d5beb7c1d4e188c5f7.gz
This commit is contained in:
axel
2007-01-22 01:03:41 +10:00
parent 66c045c439
commit 98a6c491b1
5 changed files with 19 additions and 12 deletions

6
exec.c
View File

@@ -220,7 +220,7 @@ void free_fd( io_data_t *io, int fd )
FD_ERROR,
fd );
wperror( L"dup" );
exit(1);
FATAL_EXIT();
}
}
else
@@ -515,7 +515,7 @@ static void launch_process( process_t *p )
errno = err;
wperror( L"execve" );
exit(1);
FATAL_EXIT();
}
@@ -761,7 +761,7 @@ static pid_t exec_fork()
debug( 0, FORK_ERROR );
wperror (L"fork");
exit( 1 );
FATAL_EXIT();
}