diff options
author | kib <kib@FreeBSD.org> | 2017-07-13 09:27:11 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-07-13 09:27:11 +0000 |
commit | 668d59a23068fc4a8aa806b914d95c71e903e92f (patch) | |
tree | 2479fb648c9c841acba46263712cd58a9c7dc384 /lib/libc/stdio/fgetc.c | |
parent | 55a89eef51d5a91be65f136631688b2c5b3371ab (diff) | |
download | FreeBSD-src-668d59a23068fc4a8aa806b914d95c71e903e92f.zip FreeBSD-src-668d59a23068fc4a8aa806b914d95c71e903e92f.tar.gz |
MFC r320472,r320508,r320509:
Make stdio deferred cancel-safe.
Diffstat (limited to 'lib/libc/stdio/fgetc.c')
-rw-r--r-- | lib/libc/stdio/fgetc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/fgetc.c b/lib/libc/stdio/fgetc.c index 2ee4d7a..025a0c2 100644 --- a/lib/libc/stdio/fgetc.c +++ b/lib/libc/stdio/fgetc.c @@ -46,10 +46,10 @@ int fgetc(FILE *fp) { int retval; - FLOCKFILE(fp); + FLOCKFILE_CANCELSAFE(fp); /* Orientation set by __sgetc() when buffer is empty. */ /* ORIENT(fp, -1); */ retval = __sgetc(fp); - FUNLOCKFILE(fp); + FUNLOCKFILE_CANCELSAFE(); return (retval); } |