File: test-sleep-forever.c

package info (click to toggle)
dbus 1.16.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,028 kB
  • sloc: ansic: 106,011; xml: 9,270; sh: 1,954; python: 242; makefile: 227; cpp: 27
file content (22 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (9)
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;
}