about summary refs log tree commit diff
path: root/pause.c
blob: 4825df6b064f10a577b94dc39de7d944035fcf38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <unistd.h>
#include <signal.h>

static void
nop(int sig)
{
}

int
main()
{
  signal(SIGTERM, nop);
  signal(SIGINT, nop);
  signal(SIGHUP, SIG_IGN);

  pause();

  return 0;
}