Skip to content

Commit

Permalink
[WATCHDOG] doc: watchdog simple example: don't fail on fsync()
Browse files Browse the repository at this point in the history
Don't terminate the watchdog daemon when fsync() fails because no
watchdog driver actually implements the fsync() syscall.

Signed-off-by: Giel van Schijndel <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
muggenhor authored and Wim Van Sebroeck committed Apr 3, 2010
1 parent 5e80371 commit cf9cf9a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Documentation/watchdog/src/watchdog-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ int main(void)
ret = -1;
break;
}
ret = fsync(fd);
if (ret)
break;
sleep(10);
}
close(fd);
Expand Down

0 comments on commit cf9cf9a

Please sign in to comment.