From c1ae4414d4ac6504992434b949b252c30daf0c48 Mon Sep 17 00:00:00 2001 From: Wincent Balin Date: Thu, 3 Jun 2010 00:39:13 +0000 Subject: pdbox: Source cleanup. Removed unneeded files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26497 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/pdbox/PDa/src/s_watchdog.c | 48 --------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 apps/plugins/pdbox/PDa/src/s_watchdog.c (limited to 'apps/plugins/pdbox/PDa/src/s_watchdog.c') diff --git a/apps/plugins/pdbox/PDa/src/s_watchdog.c b/apps/plugins/pdbox/PDa/src/s_watchdog.c deleted file mode 100644 index e8653e9e39..0000000000 --- a/apps/plugins/pdbox/PDa/src/s_watchdog.c +++ /dev/null @@ -1,48 +0,0 @@ -/* Copyright (c) 1997-2000 Miller Puckette. -* For information on usage and redistribution, and for a DISCLAIMER OF ALL -* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ - -/* This file is compiled into the separate program, "pd-watchdog," which -tries to prevent Pd from locking up the processor if it's at realtime -priority. Linux only. Invoked from s_inter.c. */ - -#include -#include -#include -#include -#include - -int main(int argc, char **argv) -{ - int happy = 1; - while (1) - { - struct timeval timout; - fd_set readset; - if (happy) - { - timout.tv_sec = 5; - timout.tv_usec = 0; - } - else - { - timout.tv_sec = 2; - timout.tv_usec = 0; - } - FD_ZERO(&readset); - FD_SET(0, &readset); - select(1, &readset, 0, 0, &timout); - if (FD_ISSET(0, &readset)) - { - char buf[100]; - happy = 1; - if (read(0, &buf, 100) <= 0) - return (0); - else continue; - } - happy = 0; - kill(getppid(), SIGHUP); - fprintf(stderr, "watchdog: signaling pd...\n"); - } -} - -- cgit v1.2.3