Compare commits

...
4 Commits
3 changed files with 17 additions and 3 deletions

No files matched your search

+6
View File
@@ -1,3 +1,9 @@
2002-06-27 Robert James Kaes <rjkaes@flarenet.com>
* src/child.c (child_make):
Reset the various signals to the default signal handler so that
the children can be properly destroyed.
2002-06-15 Robert James Kaes <rjkaes@flarenet.com>
* src/log.c (log_message):
+2 -2
View File
@@ -1,4 +1,4 @@
dnl $Id: configure.ac,v 2.40 2002-06-18 20:08:36 rjkaes Exp $
dnl $Id: configure.ac,v 2.41 2002-06-27 16:30:38 rjkaes Exp $
dnl Devlopers, please strive to achieve this order:
dnl
@@ -14,7 +14,7 @@ dnl 8. System services
dnl
dnl Read the Autoconf manual for details.
AC_INIT([tinyproxy], [1.5.1rc2], [rjkaes@users.sourceforge.net])
AC_INIT([tinyproxy], [1.5.1rc3], [rjkaes@users.sourceforge.net])
AC_CONFIG_SRCDIR([src/tinyproxy.c])
AC_PREREQ(2.52)
+9 -1
View File
@@ -1,4 +1,4 @@
/* $Id: child.c,v 1.4 2002-06-15 17:31:31 rjkaes Exp $
/* $Id: child.c,v 1.5 2002-06-27 16:29:21 rjkaes Exp $
*
* Handles the creation/destruction of the various children required for
* processing incoming connections.
@@ -19,6 +19,7 @@
#include "tinyproxy.h"
#include "child.h"
#include "daemon.h"
#include "filter.h"
#include "heap.h"
#include "log.h"
@@ -243,6 +244,13 @@ child_make(struct child_s* ptr)
if ((pid = fork()) > 0)
return pid; /* parent */
/*
* Reset the SIGNALS so that the child can be reaped.
*/
set_signal_handler(SIGCHLD, SIG_DFL);
set_signal_handler(SIGTERM, SIG_DFL);
set_signal_handler(SIGHUP, SIG_DFL);
child_main(ptr); /* never returns */
return -1;
}