GRASS 8 Programmer's Manual 8.6.0dev(2026)-55de52a352
Loading...
Searching...
No Matches
sighold.c
Go to the documentation of this file.
1/*!
2 \file lib/manage/sighold.c
3
4 \brief Manage Library - Hold signals
5
6 SPDX-FileCopyrightText: 2001-2011 GRASS Development Team
7 SPDX-License-Identifier: GPL-2.0-or-later
8
9 \author Original author CERL
10 */
11
12#include <signal.h>
13#include <grass/config.h>
14
15/*!
16 \brief Hold signals
17
18 \param hold
19
20 \return 0
21 */
23{
24 void (*sig)(int) = hold ? SIG_IGN : SIG_DFL;
25
26 signal(SIGINT, sig);
27
28#ifndef _WIN32
29 signal(SIGQUIT, sig);
30#endif
31
32#ifdef SIGTSTP
33 signal(SIGTSTP, sig);
34#endif
35
36 return 0;
37}
int M__hold_signals(int hold)
Hold signals.
Definition sighold.c:22