Dmitry V. Levin | 9175909 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 1 | #include "defs.h" |
| 2 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 3 | SYS_FUNC(exit) |
Dmitry V. Levin | 9175909 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 4 | { |
| 5 | if (exiting(tcp)) { |
Dmitry V. Levin | 6c8ef05 | 2015-05-25 22:51:19 +0000 | [diff] [blame] | 6 | error_msg("_exit returned!"); |
Dmitry V. Levin | 9175909 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 7 | 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 | } |