aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@leaflabs.com>2013-12-19 11:52:06 -0500
committerbryan newbold <bnewbold@leaflabs.com>2013-12-19 11:52:06 -0500
commit871a32fe623fc8842019150254dd0918eea79d4f (patch)
tree4e1e1ceb130bb86cf66e384f27b56467386253e9
parent6799bf57fda003c2e8e3a1fa397ed69b7b8d4e18 (diff)
downloaduioctl-871a32fe623fc8842019150254dd0918eea79d4f.tar.gz
uioctl-871a32fe623fc8842019150254dd0918eea79d4f.zip
synchronous I/O
-rw-r--r--uioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uioctl.c b/uioctl.c
index 6558844..a7e4d84 100644
--- a/uioctl.c
+++ b/uioctl.c
@@ -76,7 +76,7 @@ static void monitor(char *fpath, int forever) {
char startval[] = {0,0,0,1};
printf("Waiting for interrupts on %s\n", fpath);
- fd = open(fpath, O_RDWR);
+ fd = open(fpath, O_RDWR|O_SYNC);
if (fd < 1) {
perror("uioctl");
fprintf(stderr, "Couldn't open UIO device file: %s\n", fpath);