diff options
author | bryan newbold <bnewbold@leaflabs.com> | 2013-12-19 11:52:06 -0500 |
---|---|---|
committer | bryan newbold <bnewbold@leaflabs.com> | 2013-12-19 11:52:06 -0500 |
commit | 871a32fe623fc8842019150254dd0918eea79d4f (patch) | |
tree | 4e1e1ceb130bb86cf66e384f27b56467386253e9 | |
parent | 6799bf57fda003c2e8e3a1fa397ed69b7b8d4e18 (diff) | |
download | uioctl-871a32fe623fc8842019150254dd0918eea79d4f.tar.gz uioctl-871a32fe623fc8842019150254dd0918eea79d4f.zip |
synchronous I/O
-rw-r--r-- | uioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |