#include #include #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; }