• R/O
  • HTTP
  • SSH
  • HTTPS

dscsd-cap: Commit


Commit MetaInfo

Revision7abc857f867ba97cdf94645e0e182b6ed8426273 (tree)
Time2018-11-19 20:35:30
AuthorSatoshi Yasuda <7m3tjz;jarl.com>
CommiterSatoshi Yasuda

Log Message

modified: handler.c
modified: main.c

Change Summary

Incremental Difference

--- a/handler.c
+++ b/handler.c
@@ -4,7 +4,6 @@ int get_server_ip(void);
44
55 void handler (int sig)
66 {
7- syslog (LOG_INFO,"singal %d", sig);
87 if (sig == SIGTERM) sig_term = TRUE;
98 else if (sig == SIGINT) sig_term = TRUE;
109 else if (sig == SIGUSR2)
@@ -25,11 +24,6 @@ void handler (int sig)
2524 int handler_init(void)
2625 {
2726
28- if (signal(SIGUSR1, handler) == SIG_ERR)
29- {
30- syslog (LOG_ERR, "signal (SIGUSR1) error");
31- return FALSE;
32- }
3327 if (signal(SIGUSR2, handler) == SIG_ERR)
3428 {
3529 syslog (LOG_ERR, "signal (SIGUSR2) error");
--- a/main.c
+++ b/main.c
@@ -16,13 +16,10 @@ main(int argc, const char **argv)
1616 time_t curtime;
1717 time_t reload_time;
1818
19- //daemon (0, 0);
20-
2119 OwnDscsdIP.s_addr = 0;
2220
2321 FD_ZERO (&fd_save);
2422 sigemptyset (&save_sig);
25- sigaddset (&save_sig, SIGUSR1);
2623 sigaddset (&save_sig, SIGUSR2);
2724 sigaddset (&save_sig, SIGTERM);
2825 sigaddset (&save_sig, SIGINT);
Show on old repository browser