1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Thread-secure psignal(3).

This commit is contained in:
Jonas 'Sortie' Termansen 2013-09-03 16:44:33 +02:00
parent 48edf99373
commit c4e6888fd9

View file

@ -28,7 +28,9 @@
extern "C" void psignal(int signum, const char* message)
{
flockfile(stderr);
if ( message && message[0] )
fprintf(stderr, "%s: ", message);
fprintf(stderr, strsignal(signum));
fprintf_unlocked(stderr, "%s: ", message);
fprintf_unlocked(stderr, strsignal(signum));
funlockfile(stderr);
}