blob: 0e0c2ea2059e3377f2501e713147fee599cb0916 [file] [log] [blame]
Dmitry V. Levin91759092014-12-11 19:25:02 +00001#include "defs.h"
2
3int
4sys_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}