test-sleep-forever.c 295 Bytes
Newer Older
1 2 3 4 5 6 7 8
/* This is a process that just sleeps infinitely. */

#include <config.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

9 10 11 12 13 14
#ifdef DBUS_WIN
# include <windows.h>
# define sleep Sleep
#endif


15 16 17 18 19
int
main (int argc, char **argv)
{
  while (1)
    sleep (10000000);
20

21 22
  return 1;
}