diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-01-30 23:17:08 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-01-30 23:17:08 +0000 |
commit | 334d7f09d8dec83b9399e2cc44490b3868cd0772 (patch) | |
tree | ad11297cfe5c589981bce30c1cee26f5cec9bd4e /src/include | |
parent | aae36ab297feb6e934f478e7655c123d928651a7 (diff) | |
download | skalibs-334d7f09d8dec83b9399e2cc44490b3868cd0772.tar.xz |
make fd_sanitize check stderr too
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/djbunix.h | 2 |
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) ; |