diff --git a/src/bozo/bnode.c b/src/bozo/bnode.c index b52f5667b4..b401b46e71 100644 --- a/src/bozo/bnode.c +++ b/src/bozo/bnode.c @@ -528,6 +528,12 @@ static int bproc() { RememberProcName(tp); tb->errorSignal = 0; } + if (tp->coreName) + bozo_Log("%s:%s exited with code %d", + tb->name, tp->coreName, tp->lastExit); + else + bozo_Log("%s exited with code %d", + tb->name, tp->lastExit); } else { /* Signal occurred, perhaps spurious due to shutdown request. @@ -542,6 +548,14 @@ static int bproc() { tb->lastErrorExit = FT_ApproxTime(); RememberProcName(tp); } + if (tp->coreName) + bozo_Log("%s:%s exited on signal %d%s", + tb->name, tp->coreName, tp->lastSignal, + WCOREDUMP(status) ? " (core dumped)" : ""); + else + bozo_Log("%s exited on signal %d%s", + tb->name, tp->lastSignal, + WCOREDUMP(status) ? " (core dumped)" : ""); SaveCore(tb, tp); } tb->lastAnyExit = FT_ApproxTime(); diff --git a/src/util/assert.c b/src/util/assert.c index ca35cc2f41..b144466216 100644 --- a/src/util/assert.c +++ b/src/util/assert.c @@ -26,7 +26,14 @@ void afs_NTAbort(void) void AssertionFailed(char *file, int line) { - fprintf(stderr, "Assertion failed! file %s, line %d.\n", file, line); + char tdate[26]; + time_t when; + + time(&when); + strcpy(tdate, ctime(&when)); + tdate[24] = '0'; + fprintf(stderr, "%s: Assertion failed! file %s, line %d.\n", + tdate, file, line); fflush(stderr); #ifdef AFS_NT40_ENV afs_NTAbort();