• R/O
  • HTTP
  • SSH
  • HTTPS

dscsd-cap: Commit


Commit MetaInfo

Revisionb928632675c9a2fe5da2f251eebd2f07cc417486 (tree)
Time2018-11-21 11:21:53
AuthorSatoshi Yasuda <7m3tjz;jarl.com>
CommiterSatoshi Yasuda

Log Message

modified: handler.c
modified: main.c

Change Summary

Incremental Difference

--- a/config.h
+++ b/config.h
@@ -81,7 +81,7 @@
8181 #define PACKAGE_NAME "dscsd_cap"
8282
8383 /* Define to the full name and version of this package. */
84-#define PACKAGE_STRING "dscsd_cap 00.04"
84+#define PACKAGE_STRING "dscsd_cap 00.05"
8585
8686 /* Define to the one symbol short name of this package. */
8787 #define PACKAGE_TARNAME "dscsd_cap"
@@ -90,7 +90,7 @@
9090 #define PACKAGE_URL ""
9191
9292 /* Define to the version of this package. */
93-#define PACKAGE_VERSION "00.04"
93+#define PACKAGE_VERSION "00.05"
9494
9595 /* Define to 1 if you have the ANSI C header files. */
9696 #define STDC_HEADERS 1
@@ -99,7 +99,7 @@
9999 #define TIME_WITH_SYS_TIME 1
100100
101101 /* Version number of package */
102-#define VERSION "00.04"
102+#define VERSION "00.05"
103103
104104 /* Define to rpl_malloc if the replacement function should be used. */
105105 /* #undef malloc */
--- a/handler.c
+++ b/handler.c
@@ -4,6 +4,7 @@ int get_server_ip(void);
44
55 void handler (int sig)
66 {
7+ syslog (LOG_INFO, "signal received %d", sig);
78 if (sig == SIGTERM) sig_term = TRUE;
89 else if (sig == SIGINT) sig_term = TRUE;
910 else if (sig == SIGUSR2)
--- a/main.c
+++ b/main.c
@@ -55,7 +55,12 @@ main(int argc, const char **argv)
5555 read_config();
5656 init();
5757
58- if (capture_init()) return;
58+ if (capture_init())
59+ {
60+ syslog (LOG_INFO, "dscsd Capture & Re-Send End");
61+ closelog();
62+ return;
63+ }
5964
6065 trust_pnt = NULL;
6166
@@ -85,6 +90,7 @@ main(int argc, const char **argv)
8590 syslog (LOG_INFO, "dscsd Capture & Re-Send End");
8691 closelog ();
8792 remove (PID_FILE);
93+ break;
8894 }
8995 }
9096 return 0;
Show on old repository browser