Dmitry V. Levin | 9175909 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 1 | #include "defs.h" |
2 | |||||
3 | int | ||||
4 | sys_exit(struct tcb *tcp) | ||||
5 | { | ||||
6 | if (exiting(tcp)) { | ||||
7 | fprintf(stderr, "_exit returned!\n"); | ||||
8 | return -1; | ||||
9 | } | ||||
10 | /* special case: we stop tracing this process, finish line now */ | ||||
11 | tprintf("%ld) ", tcp->u_arg[0]); | ||||
12 | tabto(); | ||||
13 | tprints("= ?\n"); | ||||
14 | line_ended(); | ||||
15 | return 0; | ||||
16 | } |