blob: aec01da18fe03b340e2115bf6645b881a4ad2186 [file] [log] [blame]
Dmitry V. Levin91759092014-12-11 19:25:02 +00001#include "defs.h"
2
Dmitry V. Levina0bd3742015-04-07 01:36:50 +00003SYS_FUNC(exit)
Dmitry V. Levin91759092014-12-11 19:25:02 +00004{
5 if (exiting(tcp)) {
Dmitry V. Levin6c8ef052015-05-25 22:51:19 +00006 error_msg("_exit returned!");
Dmitry V. Levin91759092014-12-11 19:25:02 +00007 return -1;
8 }
9 /* special case: we stop tracing this process, finish line now */
10 tprintf("%ld) ", tcp->u_arg[0]);
11 tabto();
12 tprints("= ?\n");
13 line_ended();
14 return 0;
15}