NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: misc/48282: Running ATF tests on 6.1.2 in KVM VPS leaves processes running
The following reply was made to PR misc/48282; it has been noted by GNATS.
From: Andreas Gustafsson <gson%gson.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gson%gson.org@localhost (Andreas Gustafsson)
Subject: Re: misc/48282: Running ATF tests on 6.1.2 in KVM VPS leaves processes
running
Date: Wed, 9 Oct 2013 16:48:51 +0300
I have now determined the cause of the problem. It's a race
condition: nfsd calls daemon() early in its main(), and by the time it
gets around to registering its RPCs, the test has already proceeded to
execute mount_nfs, which fails because the RPCs are not yet
registered.
Other daemons in NetBSD also suffer from the same general problem of
going into the background before they are ready to provide service.
Not that the problem is in any way limited to NetBSD; see for example
this article, which I mostly agree with:
http://welz.org.za/notes/on-starting-daemons.html
It would be good if we could come up with a standard solution to this
problem rather than solving it separately and differently in each
daemon. Once have a concrete proposal, I will post it on
tech-userlevel.
--
Andreas Gustafsson, gson%gson.org@localhost
Home |
Main Index |
Thread Index |
Old Index