From bd07ca49b9b480d39cf57c3cd18be522ab257161 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 7 Nov 2012 21:13:41 +0100 Subject: [PATCH] use pipe instead of pipe2 --- src/allocator_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allocator_thread.c b/src/allocator_thread.c index c997f9d..3ff0122 100644 --- a/src/allocator_thread.c +++ b/src/allocator_thread.c @@ -270,7 +270,7 @@ size_t at_get_host_for_ip(ip_type ip, char* readbuf) { static void initpipe(int* fds) { - if(pipe2(fds, 0/*O_CLOEXEC*/) == -1) { + if(pipe(fds) == -1) { perror("pipe"); exit(1); }