pike.git / bin / test_pike.pike

version» Context lines:

pike.git/bin/test_pike.pike:1:   #!/usr/local/bin/pike    - /* $Id: test_pike.pike,v 1.79 2002/12/30 01:29:53 nilsson Exp $ */ + /* $Id: test_pike.pike,v 1.80 2003/01/20 17:48:45 nilsson Exp $ */      import Stdio;      #if !constant(_verify_internals)   #define _verify_internals()   #endif      #if !constant(_dmalloc_set_name)   void _dmalloc_set_name(mixed ... args) {}   #endif
pike.git/bin/test_pike.pike:152:   #endif      void run_watchdog(int pid) {   #ifdef WATCHDOG    int cnt=0;    int last_time=time();    int exit_quietly;   #ifdef WATCHDOG_PIPE    thread_create(lambda() {    object o=Stdio.File("stdin"); -  while(strlen(o->read(1) || "")) +  while(sizeof(o->read(1) || ""))    {    last_time=time();    }    exit_quietly=1;    });   #endif // WATCHDOG_PIPE      #ifdef WATCHDOG_SIGNAL    werror("Setting signal (1)\n");    if(signum("SIGQUIT")>=0)