plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit cab21cdc907a5daa898546664363f9b3c9542a54
parent 9d34b45bd8d799d47a9f05390043a4b2c46bce9d
Author: ssnf <ssnf@ssnf.xyz>
Date:   Wed,  9 Jul 2025 05:00:42 +0000

print error message on program exit

Diffstat:
Msrc/lib9/atexit.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/lib9/atexit.c b/src/lib9/atexit.c @@ -52,5 +52,6 @@ exits(char *s) } if(s == 0 || *s == 0) exit(0); + fprint(2, "%s\n", s); exit(exitcode(s)); }