blob: 713c8420996f266e1e35e2977fd1b70e1bc7d575 (
plain) (
tree)
|
|
/*
* 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_handle_stop_signals(void);
int signal_block_all(sigset_t *old);
int signal_restore(const sigset_t *new);
int signal_unblock_all_except_stop_signals(void);
#endif
|