From 871a32fe623fc8842019150254dd0918eea79d4f Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Thu, 19 Dec 2013 11:52:06 -0500 Subject: synchronous I/O --- uioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uioctl.c') 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); -- cgit v1.2.3