Przeglądaj źródła

- solaris fixes

Andrei Pelinescu-Onciul 19 lat temu
rodzic
commit
90d859b2c6
3 zmienionych plików z 6 dodań i 3 usunięć
  1. 1 1
      cfg.y
  2. 2 1
      main.c
  3. 3 1
      signals.c

+ 1 - 1
cfg.y

@@ -348,7 +348,7 @@ static struct socket_id* mk_listen_id(char*, int, int);
 %type <attr> attr_id_ass
 %type <attr> attr_id_val
 %type <attr> attr_id_any
-//%type <intval> class_id
+/* %type <intval> class_id */
 %type <intval> assign_op
 %type <select> select_id
 %type <strval>	flag_name;

+ 2 - 1
main.c

@@ -1096,7 +1096,8 @@ int main_loop()
 				/* start tcp+tls master proc */
 			process_no++;
 			if ((pid=fork())<0){
-				LOG(L_CRIT, "main_loop: cannot fork tcp main process\n");
+				LOG(L_CRIT, "main_loop: cannot fork tcp main process: %s\n",
+							strerror(errno));
 				goto error;
 			}else if (pid==0){
 				/* child */

+ 3 - 1
signals.c

@@ -33,7 +33,10 @@
  */
 
 #include "signals.h"
+#include "dprint.h"
+
 #include <signal.h>
+#include <string.h> /* memset */
 
 #ifdef USE_SIGACTION
 void (*set_sig_h(int sig, void (*handler) (int) ))(int)
@@ -47,7 +50,6 @@ void (*set_sig_h(int sig, void (*handler) (int) ))(int)
 	sigemptyset(&act.sa_mask);
 	act.sa_flags=0;
 	*/
-	LOG(L_CRIT, "setting signal %d to %p\n", sig, handler);
 	/* sa_sigaction not set, we use sa_hanlder instead */ 
 	return (sigaction (sig, &act, &old)==-1)?SIG_ERR:old.sa_handler;
 }