summaryrefslogtreecommitdiff
path: root/test/test-sleep-forever.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-04-05 00:37:17 +0000
committerHavoc Pennington <hp@redhat.com>2003-04-05 00:37:17 +0000
commit03b9ca6d4ecf2577958530b8390d675c73a58825 (patch)
treebe0569a447ef9acaf5a0004fb9bfe1a2022c9eb1 /test/test-sleep-forever.c
parent45d1479fad0fb55f1775c394e696643dad3e8e4d (diff)
downloaddbus-03b9ca6d4ecf2577958530b8390d675c73a58825.tar.gz
2003-04-04 Havoc Pennington <hp@redhat.com>
* dbus/dbus-spawn.c, dbus/dbus-spawn.h: Change dbus_spawn to return a "babysitter" object that is used to monitor the status of the spawned process and reap it when required. * test/test-segfault.c, test/test-exit.c, test/test-sleep-forever.c: binaries that do various lame things, used in the test suite. * dbus/dbus-sysdeps.c: kill _dbus_errno_to_string()
Diffstat (limited to 'test/test-sleep-forever.c')
-rw-r--r--test/test-sleep-forever.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test-sleep-forever.c b/test/test-sleep-forever.c
new file mode 100644
index 00000000..7d9541e8
--- /dev/null
+++ b/test/test-sleep-forever.c
@@ -0,0 +1,12 @@
+/* This is a process that just sleeps infinitely. */
+
+#include <unistd.h>
+
+int
+main (int argc, char **argv)
+{
+ while (1)
+ sleep (10000000);
+
+ return 1;
+}