test-sleep-forever.c 295 Bytes
Newer Older
1 2
/* This is a process that just sleeps infinitely. */

3 4 5
#include <config.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
6
#include <unistd.h>
7
#endif
8

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;
}