Adjusted abort() message
This commit is contained in:
@@ -2,8 +2,15 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
/* defined in dyld/main.c */
|
||||||
|
extern const char *dyld_exec_path(void);
|
||||||
|
|
||||||
_Noreturn void abort(void)
|
_Noreturn void abort(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, " ** [%d] abort\n", getpid());
|
/* yes we're faking the job number shut up */
|
||||||
|
char header[64];
|
||||||
|
snprintf(header, sizeof header, "[1] %6d abort", getpid());
|
||||||
|
|
||||||
|
fprintf(stderr, "%-20s %s\n", header, dyld_exec_path());
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user