Release 4.16 samples/watchdog/watchdog-simple.c
// SPDX-License-Identifier: GPL-2.0
#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.22% | 1 | 25.00% |
Américo Wang | 31 | 31.63% | 1 | 25.00% |
Jean Delvare | 6 | 6.12% | 1 | 25.00% |
Greg Kroah-Hartman | 1 | 1.02% | 1 | 25.00% |
Total | 98 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.