summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-20 01:36:38 +0000
committerbrian <brian@FreeBSD.org>1998-06-20 01:36:38 +0000
commitc2aa2f38cd437cc848b557b81fe3eb9d4d407b9b (patch)
tree47845537faee350c8584544d5e7de0f5a6e1537b /usr.sbin/ppp/bundle.c
parent6e7ded224d09f6b63debbee1e5db7b1ae4a0a100 (diff)
downloadFreeBSD-src-c2aa2f38cd437cc848b557b81fe3eb9d4d407b9b.zip
FreeBSD-src-c2aa2f38cd437cc848b557b81fe3eb9d4d407b9b.tar.gz
Re-initialise our timer service after fork()ing
to lose our terminal session. Is this a bug in setitimer() ? - it must be called again in the child !
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index d020db0..49ba4de 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bundle.c,v 1.20 1998/06/18 23:38:04 brian Exp $
+ * $Id: bundle.c,v 1.21 1998/06/20 00:19:32 brian Exp $
*/
#include <sys/param.h>
@@ -1634,6 +1634,7 @@ bundle_setsid(struct bundle *bundle, int holdsession)
log_Printf(LogPHASE, "%d -> %d: %s session control\n",
(int)orig, (int)getpid(),
holdsession ? "Passed" : "Dropped");
+ timer_InitService();
break;
default:
close(fds[1]);
OpenPOWER on IntegriCloud