... | ... |
@@ -348,7 +348,7 @@ static struct socket_id* mk_listen_id(char*, int, int); |
348 | 348 |
%type <attr> attr_id_ass |
349 | 349 |
%type <attr> attr_id_val |
350 | 350 |
%type <attr> attr_id_any |
351 |
-//%type <intval> class_id |
|
351 |
+/* %type <intval> class_id */ |
|
352 | 352 |
%type <intval> assign_op |
353 | 353 |
%type <select> select_id |
354 | 354 |
%type <strval> flag_name; |
... | ... |
@@ -1096,7 +1096,8 @@ int main_loop() |
1096 | 1096 |
/* start tcp+tls master proc */ |
1097 | 1097 |
process_no++; |
1098 | 1098 |
if ((pid=fork())<0){ |
1099 |
- LOG(L_CRIT, "main_loop: cannot fork tcp main process\n"); |
|
1099 |
+ LOG(L_CRIT, "main_loop: cannot fork tcp main process: %s\n", |
|
1100 |
+ strerror(errno)); |
|
1100 | 1101 |
goto error; |
1101 | 1102 |
}else if (pid==0){ |
1102 | 1103 |
/* child */ |
... | ... |
@@ -33,7 +33,10 @@ |
33 | 33 |
*/ |
34 | 34 |
|
35 | 35 |
#include "signals.h" |
36 |
+#include "dprint.h" |
|
37 |
+ |
|
36 | 38 |
#include <signal.h> |
39 |
+#include <string.h> /* memset */ |
|
37 | 40 |
|
38 | 41 |
#ifdef USE_SIGACTION |
39 | 42 |
void (*set_sig_h(int sig, void (*handler) (int) ))(int) |
... | ... |
@@ -47,7 +50,6 @@ void (*set_sig_h(int sig, void (*handler) (int) ))(int) |
47 | 47 |
sigemptyset(&act.sa_mask); |
48 | 48 |
act.sa_flags=0; |
49 | 49 |
*/ |
50 |
- LOG(L_CRIT, "setting signal %d to %p\n", sig, handler); |
|
51 | 50 |
/* sa_sigaction not set, we use sa_hanlder instead */ |
52 | 51 |
return (sigaction (sig, &act, &old)==-1)?SIG_ERR:old.sa_handler; |
53 | 52 |
} |