… | |
… | |
21 | |
21 | |
22 | #include "config.h" |
22 | #include "config.h" |
23 | |
23 | |
24 | #include <cstdio> |
24 | #include <cstdio> |
25 | #include <cstring> |
25 | #include <cstring> |
|
|
26 | #include <clocale> |
26 | |
27 | |
27 | #include <errno.h> |
28 | #include <errno.h> |
28 | #include <fcntl.h> |
29 | #include <fcntl.h> |
29 | #include <getopt.h> |
30 | #include <getopt.h> |
30 | #include <signal.h> |
31 | #include <signal.h> |
… | |
… | |
124 | kill_vped = SIGKILL; |
125 | kill_vped = SIGKILL; |
125 | else if (!strcasecmp (optarg, "USR1")) |
126 | else if (!strcasecmp (optarg, "USR1")) |
126 | kill_vped = SIGUSR1; |
127 | kill_vped = SIGUSR1; |
127 | else if (!strcasecmp (optarg, "USR2")) |
128 | else if (!strcasecmp (optarg, "USR2")) |
128 | kill_vped = SIGUSR2; |
129 | kill_vped = SIGUSR2; |
129 | else if (!strcasecmp (optarg, "WINCH")) |
|
|
130 | kill_vped = SIGWINCH; |
|
|
131 | else if (!strcasecmp (optarg, "INT")) |
130 | else if (!strcasecmp (optarg, "INT")) |
132 | kill_vped = SIGINT; |
131 | kill_vped = SIGINT; |
133 | else if (!strcasecmp (optarg, "ALRM")) |
132 | else if (!strcasecmp (optarg, "ALRM")) |
134 | kill_vped = SIGALRM; |
133 | kill_vped = SIGALRM; |
135 | else |
134 | else |