From owner-freebsd-bugs Fri Oct 6 02:20:06 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id CAA18898 for bugs-outgoing; Fri, 6 Oct 1995 02:20:06 -0700 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id CAA18887 ; Fri, 6 Oct 1995 02:20:02 -0700 Resent-Date: Fri, 6 Oct 1995 02:20:02 -0700 Resent-Message-Id: <199510060920.CAA18887@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, "Received:from multivac.orthanc.com (root@multivac.orthanc.com [204.244.20.2]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id CAA18803 for" ; Fri, 6.Oct.1995.02:18:50.-0700 Received: (from lyndon@localhost) by multivac.orthanc.com (8.7/8.7) id CAA02207; Fri, 6 Oct 1995 02:18:45 -0700 (PDT) Message-Id: <199510060918.CAA02207@multivac.orthanc.com> Date: Fri, 6 Oct 1995 02:18:45 -0700 (PDT) From: Lyndon Nerenberg To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/769: xntpd does not detach from controlling terminal Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 769 >Category: bin >Synopsis: xntpd does not detach from controlling terminal >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 6 02:20:01 PDT 1995 >Last-Modified: >Originator: Lyndon Nerenberg >Organization: Orthanc Systems: Internet and UNIX consulting ___________________________________________________________ lyndon@orthanc.com || canada!lyndon || Fax: +1 604 561 2067 http://www.orthanc.com/ >Release: FreeBSD 2.0.5-RELEASE i386 >Environment: >Description: xntpd does not detach from the controlling terminal. The code around the daemon(...) call is guarded by a check for 'i386' that I suspect is a holdover from an early buggy version of daemon(). >How-To-Repeat: >Fix: A simple fix to /usr/src/usr.sbin/xntpd/xntpd/ntpd.c follows. I've run this under FreeBSD 2.0 and 2.0.5 as well as BSD/OS 1.1 and 2.0 for months with no ill effects. This should all be obsoleted by a newer version of the NTP distribution, but I don't know what your plans are. =================================================================== RCS file: ntpd.c,v retrieving revision 1.1 diff -c -r1.1 ntpd.c *** 1.1 1995/10/06 09:09:39 --- ntpd.c 1995/10/06 09:10:45 *************** *** 119,125 **** #endif /* DEBUG */ #undef BSD19906 #if defined(BSD)&&!defined(sun)&&!defined(SYS_SINIXM) ! #if (BSD >= 199006 && !defined(i386)) #define BSD19906 #endif /* BSD... */ #endif /* BSD sun */ --- 119,125 ---- #endif /* DEBUG */ #undef BSD19906 #if defined(BSD)&&!defined(sun)&&!defined(SYS_SINIXM) ! #if (BSD >= 199006) #define BSD19906 #endif /* BSD... */ #endif /* BSD sun */ >Audit-Trail: >Unformatted: