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:
parent
48edf99373
commit
c4e6888fd9
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue