Commit Diff


commit - 6c7460701e7896446d0fb14bf9b24f258c61b6a6
commit + 1be1539ea802a63e508514d7431e9eaead0b0857
blob - bc7ad0f8671cda102a97075b6057278db01549af
blob + ce810dbac098bb376d997f05f85c6c1fe210c79f
--- src/libthread/main.c
+++ src/libthread/main.c
@@ -29,7 +29,7 @@ _threaddie(int x)
 	USED(x);
 
 	if(_threadexitsallstatus)
-		exit(_threadexitsallstatus[0] ? 1 : 0);
+		_exit(_threadexitsallstatus[0] ? 1 : 0);
 }
 
 int