Commit cf9cf9ae authored by Giel van Schijndel's avatar Giel van Schijndel Committed by Wim Van Sebroeck

[WATCHDOG] doc: watchdog simple example: don't fail on fsync()

Don't terminate the watchdog daemon when fsync() fails because no
watchdog driver actually implements the fsync() syscall.
Signed-off-by: default avatarGiel van Schijndel <me@mortis.eu>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 5e803716
...@@ -17,9 +17,6 @@ int main(void) ...@@ -17,9 +17,6 @@ int main(void)
ret = -1; ret = -1;
break; break;
} }
ret = fsync(fd);
if (ret)
break;
sleep(10); sleep(10);
} }
close(fd); close(fd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment