aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/signal.h
blob: 3509a922fd56c1732ac8bd5dbea2f1dec359e8fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2022 Egor Tensin <Egor.Tensin@gmail.com>
 * This file is part of the "cimple" project.
 * For details, see https://github.com/egor-tensin/cimple.
 * Distributed under the MIT License.
 */

#ifndef __SIGNAL_H__
#define __SIGNAL_H__

#include <signal.h>

extern volatile sig_atomic_t global_stop_flag;
int signal_install_global_handler();

int signal_set(const sigset_t *new, sigset_t *old);

int signal_block_parent(sigset_t *old);
int signal_block_child();

#endif