Remove NONBLOCK flag from pipes
authorSung-jae Park <nicesj.park@samsung.com>
Fri, 27 Dec 2013 10:03:36 +0000 (19:03 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Fri, 27 Dec 2013 10:03:36 +0000 (19:03 +0900)
Change-Id: Ic171862e4f09609d6a69c5c067907638d7ac40a6

packaging/libcom-core.spec
src/com-core_thread.c

index e05f67e..0d1d439 100644 (file)
@@ -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
index a6b1ccb..28ff288 100644 (file)
@@ -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);