From 334d7f09d8dec83b9399e2cc44490b3868cd0772 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 30 Jan 2015 23:17:08 +0000 Subject: make fd_sanitize check stderr too --- src/include/skalibs/djbunix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/include/skalibs/djbunix.h b/src/include/skalibs/djbunix.h index 1a54db6..2f1192f 100644 --- a/src/include/skalibs/djbunix.h +++ b/src/include/skalibs/djbunix.h @@ -36,7 +36,7 @@ extern int fd_sync (int) ; extern int fd_cat (int, int) ; extern unsigned int fd_catn (int, int, unsigned int) ; extern int fd_ensure_open (int, int) ; -#define fd_sanitize() (fd_ensure_open(0, 0) && fd_ensure_open(1, 1)) +#define fd_sanitize() (fd_ensure_open(0, 0) && fd_ensure_open(1, 1) && fd_ensure_open(2, 2)) extern int lock_ex (int) ; extern int lock_exnb (int) ; extern int lock_sh (int) ; -- cgit v1.2.3