Date: Fri, 6 Oct 1995 02:18:45 -0700 (PDT) From: Lyndon Nerenberg <lyndon@orthanc.com> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/769: xntpd does not detach from controlling terminal Message-ID: <199510060918.CAA02207@multivac.orthanc.com> Resent-Message-ID: <199510060920.CAA18887@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510060918.CAA02207>