From ed3ea040bae8ef2cf131081124a1248a9fd3dca9 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 15 Mar 2017 13:13:58 +0100 Subject: support: Add error checking to close system calls [BZ #21244] --- support/xunistd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'support/xunistd.h') diff --git a/support/xunistd.h b/support/xunistd.h index a83b1f4541..258bab5c81 100644 --- a/support/xunistd.h +++ b/support/xunistd.h @@ -30,6 +30,10 @@ __BEGIN_DECLS pid_t xfork (void); pid_t xwaitpid (pid_t, int *status, int flags); +/* Close the file descriptor. Ignore EINTR errors, but terminate the + process on other errors. */ +void xclose (int); + /* Write the buffer. Retry on short writes. */ void xwrite (int, const void *, size_t); -- cgit v1.2.3