From 668d59a23068fc4a8aa806b914d95c71e903e92f Mon Sep 17 00:00:00 2001 From: kib Date: Thu, 13 Jul 2017 09:27:11 +0000 Subject: MFC r320472,r320508,r320509: Make stdio deferred cancel-safe. --- lib/libc/stdio/fputwc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdio/fputwc.c') diff --git a/lib/libc/stdio/fputwc.c b/lib/libc/stdio/fputwc.c index 7f0c910..d168867 100644 --- a/lib/libc/stdio/fputwc.c +++ b/lib/libc/stdio/fputwc.c @@ -74,10 +74,10 @@ fputwc_l(wchar_t wc, FILE *fp, locale_t locale) wint_t r; FIX_LOCALE(locale); - FLOCKFILE(fp); + FLOCKFILE_CANCELSAFE(fp); ORIENT(fp, 1); r = __fputwc(wc, fp, locale); - FUNLOCKFILE(fp); + FUNLOCKFILE_CANCELSAFE(); return (r); } -- cgit v1.1