rjwalsh | f5f536f | 2003-11-17 17:45:00 +0000 | [diff] [blame] | 1 | #include <sys/socket.h> |
nethercote | d8d5490 | 2003-12-04 16:12:21 +0000 | [diff] [blame] | 2 | #include <unistd.h> |
bart | fbce73d | 2008-05-27 12:33:29 +0000 | [diff] [blame] | 3 | #include "fdleak.h" |
4 | |||||
rjwalsh | f5f536f | 2003-11-17 17:45:00 +0000 | [diff] [blame] | 5 | int |
6 | main (int argc, char **argv) | ||||
7 | { | ||||
8 | int fds[2]; | ||||
9 | |||||
rjwalsh | f5f536f | 2003-11-17 17:45:00 +0000 | [diff] [blame] | 10 | |
bart | fbce73d | 2008-05-27 12:33:29 +0000 | [diff] [blame] | 11 | |
12 | |||||
13 | CLOSE_INHERITED_FDS; | ||||
rjwalsh | f5f536f | 2003-11-17 17:45:00 +0000 | [diff] [blame] | 14 | |
15 | socketpair(AF_UNIX, SOCK_STREAM, PF_UNIX, fds); | ||||
16 | return 0; | ||||
17 | } |