-#if U_PLATFORM_IMPLEMENTS_POSIX && !U_PLATFORM_HAS_WIN32_API
-
-#include <signal.h>
-#include <unistd.h>
-
-const char *wToolname="gendict";
-const char *wOutname="(some file)";
-
-const int firstSeconds = 5; /* seconds between notices*/
-const int nextSeconds = 15; /* seconds between notices*/
-
-static void alarm_fn(int /*n*/) {
- printf("%s: still writing\t%s (%ds)\t...\n", wToolname, wOutname, elapsedTime());
-
- signal(SIGALRM, &alarm_fn);
- alarm(nextSeconds); // reset the alarm
-}
-
-static void install_watchdog(const char *toolName, const char *outFileName) {
- wToolname=toolName;
- wOutname=outFileName;
-
- signal(SIGALRM, &alarm_fn);
-
- alarm(firstSeconds); // set the alarm
-}
-
-#else
-static void install_watchdog(const char*, const char*) {
- // not implemented
-}
-#endif
-
-
-
-