]> granicus.if.org Git - strace/blob - exit.c
file.c: fix 32-bit stat decoding on 64-bit architectures
[strace] / exit.c
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 }