File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 17
17
* limitations under the License.
18
18
*/
19
19
20
+ #define _GNU_SOURCE
21
+
20
22
#include <stdio.h>
21
23
#include <stdlib.h>
22
24
#include <string.h>
@@ -86,7 +88,7 @@ static void flb_banner()
86
88
}
87
89
88
90
89
- int flb_signal_handler (int signal )
91
+ void flb_signal_handler (int signal )
90
92
{
91
93
flb_debug ("[engine] caught signal %d" , signal );
92
94
switch (signal ) {
@@ -99,16 +101,14 @@ int flb_signal_handler(int signal)
99
101
default :
100
102
break ;
101
103
}
102
-
103
- return 0 ;
104
104
}
105
105
106
106
void flb_signal_init ()
107
107
{
108
- signal (SIGINT , ( __sighandler_t ) & flb_signal_handler );
109
- signal (SIGQUIT , ( __sighandler_t ) & flb_signal_handler );
110
- signal (SIGHUP , ( __sighandler_t ) & flb_signal_handler );
111
- signal (SIGTERM , ( __sighandler_t ) & flb_signal_handler );
108
+ signal (SIGINT , & flb_signal_handler );
109
+ signal (SIGQUIT , & flb_signal_handler );
110
+ signal (SIGHUP , & flb_signal_handler );
111
+ signal (SIGTERM , & flb_signal_handler );
112
112
}
113
113
114
114
int main (int argc , char * * argv )
You can’t perform that action at this time.
0 commit comments