use pipe instead of pipe2

pull/18/head
rofl0r 2012-11-07 21:13:41 +01:00
parent f570a66902
commit bd07ca49b9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}