From 1aad44dbd7ec77df8137d3e510d0a200256a02d3 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 17 Jul 2017 14:09:34 +0000 Subject: MFC r320472,r320508,r320509: Make stdio deferred cancel-safe. Requested by: eugen --- lib/libc/stdio/putchar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdio/putchar.c') diff --git a/lib/libc/stdio/putchar.c b/lib/libc/stdio/putchar.c index 756155902f29..1721a986f854 100644 --- a/lib/libc/stdio/putchar.c +++ b/lib/libc/stdio/putchar.c @@ -54,11 +54,11 @@ putchar(int c) int retval; FILE *so = stdout; - FLOCKFILE(so); + FLOCKFILE_CANCELSAFE(so); /* Orientation set by __sputc() when buffer is full. */ /* ORIENT(so, -1); */ retval = __sputc(c, so); - FUNLOCKFILE(so); + FUNLOCKFILE_CANCELSAFE(); return (retval); } -- cgit v1.2.3