File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ void beforeExit(void)
77
77
void sigint_handler (int sig )
78
78
{
79
79
beforeExit ();
80
- toLog (0 ,"Received INT signal, Exiting...\n" );
80
+ toLog (0 ,"Received INT/TERM signal, Exiting...\n" );
81
81
exit (0 );
82
82
}
83
83
@@ -242,6 +242,12 @@ void attach_signal_handler(void)
242
242
beforeExit ();
243
243
exit (1 );
244
244
}
245
+ if (sigaction (SIGTERM , & sa , NULL ) == -1 )
246
+ {
247
+ toLog (0 ,"Error, Cannot set signal handler: sigaction() failure. Exiting...\n" );
248
+ beforeExit ();
249
+ exit (1 );
250
+ }
245
251
}
246
252
247
253
int create_open_fifo (const char * fifofile )
Original file line number Diff line number Diff line change 5
5
#ifndef HASSES_HASSES_H
6
6
#define HASSES_HASSES_H
7
7
8
- #define VERSION "1.23 "
8
+ #define VERSION "1.24 "
9
9
10
10
/* The client timeout check interval in seconds */
11
11
#define CLIENT_CHK_TIME_INTERVAL 60
You can’t perform that action at this time.
0 commit comments