Change from sigterm to sighup
This commit is contained in:
parent
b82eff1c72
commit
b5bd8477e4
@ -175,7 +175,7 @@ int read_doorsys(const char *dropfile) {
|
||||
|
||||
#if !defined(WIN32) && !defined(_MSC_VER)
|
||||
|
||||
void md_sigtermhandler(int i)
|
||||
void md_sighuphandler(int i)
|
||||
{
|
||||
md_exit(-1);
|
||||
}
|
||||
@ -198,7 +198,7 @@ void md_init(const char *dropfile, int socket) {
|
||||
char *filename = strrchr(dropfile, PATH_SEP);
|
||||
#if !defined(WIN32) && !defined(_MSC_VER)
|
||||
struct termios ttystate;
|
||||
signal(SIGTERM, &md_sigtermhandler);
|
||||
signal(SIGHUP, &md_sighuphandler);
|
||||
|
||||
#endif
|
||||
int ret = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user