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
246 B
C

#include <sys/socket.h>
#include <unistd.h>
#include "fdleak.h"
#include <sys/errno.h>
int main (int argc, char **argv)
{
int fds[2];
CLOSE_INHERITED_FDS;
(void) DO( socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, fds) );
return 0;
}