From 4606105313783d5ee4d3cf22d6c7c5c7466c7b41 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Fri, 27 Dec 2013 19:03:36 +0900 Subject: Remove NONBLOCK flag from pipes Change-Id: Ic171862e4f09609d6a69c5c067907638d7ac40a6 --- packaging/libcom-core.spec | 2 +- src/com-core_thread.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/libcom-core.spec b/packaging/libcom-core.spec index e05f67e..0d1d439 100644 --- a/packaging/libcom-core.spec +++ b/packaging/libcom-core.spec @@ -1,6 +1,6 @@ Name: libcom-core Summary: Library for the light-weight IPC -Version: 0.5.5 +Version: 0.5.6 Release: 1 Group: Base/IPC License: Apache-2.0 diff --git a/src/com-core_thread.c b/src/com-core_thread.c index a6b1ccb..28ff288 100644 --- a/src/com-core_thread.c +++ b/src/com-core_thread.c @@ -536,7 +536,7 @@ static inline struct tcb *tcb_create(int client_fd, int is_sync, int (*service_c return NULL; } - if (pipe2(tcb->evt_pipe, (is_sync ? 0 : O_NONBLOCK) | O_CLOEXEC) < 0) { + if (pipe2(tcb->evt_pipe, O_CLOEXEC) < 0) { ErrPrint("Error: %s\n", strerror(errno)); status = pthread_mutex_destroy(&tcb->chunk_lock); if (status != 0) { @@ -546,7 +546,7 @@ static inline struct tcb *tcb_create(int client_fd, int is_sync, int (*service_c return NULL; } - if (pipe2(tcb->ctrl_pipe, O_NONBLOCK | O_CLOEXEC) < 0) { + if (pipe2(tcb->ctrl_pipe, O_CLOEXEC) < 0) { ErrPrint("Error: %s\n", strerror(errno)); CLOSE_PIPE(tcb->evt_pipe); -- cgit v1.2.3