Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -17,9 +17,6 @@ int main(void)
			ret = -1;
			break;
		}
		ret = fsync(fd);
		if (ret)
			break;
		sleep(10);
	}
	close(fd);