Release 4.11 samples/watchdog/watchdog-simple.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
int main(void)
{
int fd = open("/dev/watchdog", O_WRONLY);
int ret = 0;
if (fd == -1) {
perror("watchdog");
exit(EXIT_FAILURE);
}
while (1) {
ret = write(fd, "\0", 1);
if (ret != 1) {
ret = -1;
break;
}
sleep(10);
}
close(fd);
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Randy Dunlap | 54 | 63.53% | 1 | 50.00% |
Américo Wang | 31 | 36.47% | 1 | 50.00% |
Total | 85 | 100.00% | 2 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Randy Dunlap | 60 | 61.86% | 1 | 33.33% |
Américo Wang | 31 | 31.96% | 1 | 33.33% |
Jean Delvare | 6 | 6.19% | 1 | 33.33% |
Total | 97 | 100.00% | 3 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.