*BSD News Article 32927


Return to BSD News archive

Xref: sserve comp.protocols.time.ntp:4078 comp.unix.bsd:14341
Newsgroups: comp.protocols.time.ntp,comp.unix.bsd
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!reuter.cse.ogi.edu!uwm.edu!spool.mu.edu!howland.reston.ans.net!pipex!demon!ronald
From: ronald@demon.co.uk (Ronald Khoo)
Subject: xntp3.3zd: permanent sleep in resolver
Message-ID: <Ct54BL.BFy@demon.co.uk>
Organization: Demon Internet Limited
Date: Mon, 18 Jul 1994 14:30:57 GMT
Lines: 21


I couldn't find a bug report mail address in [A-Z]* in the distribution
and the gurus seem to post here so:

Version: xntp3.3zd
System: NetBSD/sparc 1.0-Alpha (4.4-lite BSD)
Symptoms: xntpd forks and the fork hangs when hostnames are put into ntp.conf
	  the hosts thus mentioned do not get listed as peers.
Cause: ntp_intres calls sleep() with SIGALRM blocked.
Fix: I just stuffed a unblock_io_and_alarm(); before the sleep(SLEEPTIME);
     around line 183 of ntp_intres.c.  If you want a proper patch, wait
     for the official patch and in the meantime use raw IP addresses if
     your implementation of sleep() requires SIGALRM to not be blocked :-)

Question is, what *should* sleep() do if entered with SIGALRM blocked ?
That's a question for comp.unix.bsd....

Have a nice day.

-- 
Ronald Khoo, Notwork Bod <ronald@cpm.my>