1
0
mirror of https://github.com/ioacademy-jikim/debugging synced 2025-06-08 08:26:14 +00:00
2015-12-13 22:34:58 +09:00

16 lines
213 B
C

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