Sign in
nest-open-source
/
nest-cam
/
4320010
/
valgrind
/
23fb368103f9471ec1defb2c0a3ea5d30c8e81fe
/
.
/
valgrind
/
none
/
tests
/
fdleak_dup.c
blob: f526121e2ed51dbfd9055b6cba3e73e730b86a04 [
file
] [
log
] [
blame
]
#include
<unistd.h>
#include
<fcntl.h>
#include
"fdleak.h"
int
main
(
int
argc
,
char
**
argv
)
{
int
s
;
CLOSE_INHERITED_FDS
;
s
=
DO
(
open
(
"/dev/null"
,
O_RDONLY
)
);
(
void
)
DO
(
dup
(
s
)
);
return
0
;
}