summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/perror.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/perror.c')
-rw-r--r--lib/libc/stdio/perror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/perror.c b/lib/libc/stdio/perror.c
index 89c0798..1500788 100644
--- a/lib/libc/stdio/perror.c
+++ b/lib/libc/stdio/perror.c
@@ -67,9 +67,9 @@ perror(const char *s)
v++;
v->iov_base = "\n";
v->iov_len = 1;
- FLOCKFILE(stderr);
+ FLOCKFILE_CANCELSAFE(stderr);
__sflush(stderr);
(void)_writev(stderr->_file, iov, (v - iov) + 1);
stderr->_flags &= ~__SOFF;
- FUNLOCKFILE(stderr);
+ FUNLOCKFILE_CANCELSAFE();
}
OpenPOWER on IntegriCloud