aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);