Change from sigterm to sighup

This commit is contained in:
Andrew Pamment 2020-05-30 17:58:16 +10:00
parent b82eff1c72
commit b5bd8477e4

View File

@ -175,7 +175,7 @@ int read_doorsys(const char *dropfile) {
#if !defined(WIN32) && !defined(_MSC_VER) #if !defined(WIN32) && !defined(_MSC_VER)
void md_sigtermhandler(int i) void md_sighuphandler(int i)
{ {
md_exit(-1); md_exit(-1);
} }
@ -198,7 +198,7 @@ void md_init(const char *dropfile, int socket) {
char *filename = strrchr(dropfile, PATH_SEP); char *filename = strrchr(dropfile, PATH_SEP);
#if !defined(WIN32) && !defined(_MSC_VER) #if !defined(WIN32) && !defined(_MSC_VER)
struct termios ttystate; struct termios ttystate;
signal(SIGTERM, &md_sigtermhandler); signal(SIGHUP, &md_sighuphandler);
#endif #endif
int ret = -1; int ret = -1;