summaryrefslogtreecommitdiff
path: root/test/test-sleep-forever.c
blob: d54769abca5268d4978eccc21656d85f0ca5cc11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* This is a process that just sleeps infinitely. */

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

#ifdef DBUS_WIN
# include <windows.h>
# define sleep Sleep
#endif


int
main (int argc, char **argv)
{
  while (1)
    sleep (10000000);

  return 1;
}