summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-30 23:17:08 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-30 23:17:08 +0000
commit334d7f09d8dec83b9399e2cc44490b3868cd0772 (patch)
treead11297cfe5c589981bce30c1cee26f5cec9bd4e
parentaae36ab297feb6e934f478e7655c123d928651a7 (diff)
downloadskalibs-334d7f09d8dec83b9399e2cc44490b3868cd0772.tar.xz
make fd_sanitize check stderr too
-rw-r--r--src/include/skalibs/djbunix.h2
1 files changed, 1 insertions, 1 deletions
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) ;