diff options
-rw-r--r-- | packaging/libcom-core.spec | 2 | ||||
-rw-r--r-- | 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); |