forked from mirrors/tftp-hpa-google
signals: require and always use sigaction()
tftpd already requires sigaction() to compile, so there is no reason to use anything else. It also allows for nicer combination of flags. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
e52af4207a
commit
33051a296c
6 changed files with 22 additions and 55 deletions
5
config.h
5
config.h
|
@ -282,10 +282,7 @@ char *xstrdup(const char *);
|
|||
#ifndef HAVE_SIGHANDLER_T
|
||||
typedef void (*sighandler_t)(int);
|
||||
#endif
|
||||
#ifndef SIG_ERR
|
||||
#define SIG_ERR NULL
|
||||
#endif
|
||||
sighandler_t tftp_signal(int, sighandler_t);
|
||||
int tftp_signal(int, sighandler_t, int);
|
||||
|
||||
#ifndef HAVE_DUP2
|
||||
int dup2(int, int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue