aboutsummaryrefslogtreecommitdiffstats
path: root/src/testd.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-07-08 17:07:11 +0000
committerBill Nottingham <notting@redhat.com>1999-07-08 17:07:11 +0000
commit0aeb63ad9b5462be2d7a868e8c76135ea8336203 (patch)
treea53d70f2f26a3af2fe423d6fe3ffeda25083919c /src/testd.c
parent77b0bb06a826bff3e745bc10d2aff30bef514fe8 (diff)
downloadinitscripts-0aeb63ad9b5462be2d7a868e8c76135ea8336203.tar
initscripts-0aeb63ad9b5462be2d7a868e8c76135ea8336203.tar.gz
initscripts-0aeb63ad9b5462be2d7a868e8c76135ea8336203.tar.bz2
initscripts-0aeb63ad9b5462be2d7a868e8c76135ea8336203.tar.xz
initscripts-0aeb63ad9b5462be2d7a868e8c76135ea8336203.zip
fix some compiler warnings (nkbj@image.dk)
Diffstat (limited to 'src/testd.c')
-rw-r--r--src/testd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testd.c b/src/testd.c
index f512cec9..7deb00eb 100644
--- a/src/testd.c
+++ b/src/testd.c
@@ -1,7 +1,8 @@
#include <sys/signal.h>
#include <unistd.h>
-void main() {
+int main() {
signal(SIGTERM, SIG_IGN);
while (1) sleep(20);
+ exit(0);
}