Dmitry V. Levin
9175909acc
* exit.c: New file. * Makefile.am (strace_SOURCES): Add it. * process.c (sys_exit): Move to exit.c.
17 lines
286 B
C
17 lines
286 B
C
#include "defs.h"
|
|
|
|
int
|
|
sys_exit(struct tcb *tcp)
|
|
{
|
|
if (exiting(tcp)) {
|
|
fprintf(stderr, "_exit returned!\n");
|
|
return -1;
|
|
}
|
|
/* special case: we stop tracing this process, finish line now */
|
|
tprintf("%ld) ", tcp->u_arg[0]);
|
|
tabto();
|
|
tprints("= ?\n");
|
|
line_ended();
|
|
return 0;
|
|
}
|