diff options
Diffstat (limited to 'reference/C/CONTRIB/OR_USING_C/08.1.c')
-rw-r--r-- | reference/C/CONTRIB/OR_USING_C/08.1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/reference/C/CONTRIB/OR_USING_C/08.1.c b/reference/C/CONTRIB/OR_USING_C/08.1.c new file mode 100644 index 0000000..3a5cf10 --- /dev/null +++ b/reference/C/CONTRIB/OR_USING_C/08.1.c @@ -0,0 +1,13 @@ +#include <signal.h> + +main() +{ + signal(SIGINT, SIG_IGN); + + /* + * pause() just suspends the process until a + * signal is received. + */ + pause(); +} + |