aboutsummaryrefslogtreecommitdiff
path: root/flow-native
diff options
context:
space:
mode:
authorSabine Odersky <sabineodersky@Sabine-Oderskys-MacBook-Pro.local>2013-07-04 21:26:29 +0200
committerSabine Odersky <sabineodersky@Sabine-Oderskys-MacBook-Pro.local>2013-07-04 21:26:29 +0200
commitb03820da96770f7cc6478c746601252ce1984ce6 (patch)
treeda220ee8132e55483f0b316d06901c7d5609f6cf /flow-native
parent38e680d523d392034e881da015da03b64036c580 (diff)
downloadakka-serial-b03820da96770f7cc6478c746601252ce1984ce6.tar.gz
akka-serial-b03820da96770f7cc6478c746601252ce1984ce6.tar.bz2
akka-serial-b03820da96770f7cc6478c746601252ce1984ce6.zip
linking works, testing needed
Diffstat (limited to 'flow-native')
-rw-r--r--flow-native/unix/src/flow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/flow-native/unix/src/flow.c b/flow-native/unix/src/flow.c
index 8aae2b7..aa1b213 100644
--- a/flow-native/unix/src/flow.c
+++ b/flow-native/unix/src/flow.c
@@ -134,7 +134,8 @@ int serial_open(const char* port_name, int baud, struct serial_config** serial)
}
int pipe_fd[2];
- if (pipe2(pipe_fd, O_NONBLOCK) < 0) {
+//TODO make pipe non-blocking
+ if (pipe(pipe_fd) < 0) {
DEBUG(perror("open pipe"););
close(fd);
return E_IO;