summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-12-27 19:03:36 +0900
committerSung-jae Park <nicesj.park@samsung.com>2013-12-27 19:03:36 +0900
commit4606105313783d5ee4d3cf22d6c7c5c7466c7b41 (patch)
treec4900e0fb8b1fb170037bf1a04c7720ff7e7ee74
parentb3213f721457c6030b6b79e65413a3a87f1d26e3 (diff)
downloadcom-core-4606105313783d5ee4d3cf22d6c7c5c7466c7b41.tar.gz
com-core-4606105313783d5ee4d3cf22d6c7c5c7466c7b41.tar.bz2
com-core-4606105313783d5ee4d3cf22d6c7c5c7466c7b41.zip
Remove NONBLOCK flag from pipes
Change-Id: Ic171862e4f09609d6a69c5c067907638d7ac40a6
-rw-r--r--packaging/libcom-core.spec2
-rw-r--r--src/com-core_thread.c4
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);