From 9a737ab7a40984cfdfffd014562a220a3736a10f Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Sat, 17 Oct 2009 14:25:01 -0700 Subject: use *_not_cancel variants to avoid accidental cancellations with nptl Signed-off-by: Austin Foxley --- libc/stdio/tmpfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/stdio') diff --git a/libc/stdio/tmpfile.c b/libc/stdio/tmpfile.c index 2f973c329..57f252715 100644 --- a/libc/stdio/tmpfile.c +++ b/libc/stdio/tmpfile.c @@ -20,6 +20,7 @@ #include #include #include "../misc/internals/tempname.h" +#include /* This returns a new stream opened on a temporary file (generated @@ -43,7 +44,7 @@ FILE * tmpfile (void) (void) remove (buf); if ((f = fdopen (fd, "w+b")) == NULL) - close (fd); + close_not_cancel (fd); return f; } -- cgit v1.2.3