forked from luck/tmp_suning_uos_patched
[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: Giel van Schijndel <me@mortis.eu> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
5e80371664
commit
cf9cf9aed1
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user