Date: Tue, 20 Jul 1999 09:21:49 -0600 From: Nate Williams <nate@mt.sri.com> To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Cc: obrien@NUXI.com, imp@village.org, mobile@FreeBSD.ORG Subject: Re: pccardd patches for review Message-ID: <199907201521.JAA19404@mt.sri.com> In-Reply-To: <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> References: <19990720074941.J1607@dragon.nuxi.com> <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp>
index | next in thread | previous in thread | raw e-mail
> >> > In message <19990720015015.C30371@nuxi.com> "David O'Brien" writes:
> >> > : One thing we really need is a way to make pccardd to not daemonize
> >> > : (regardless of the delay) until it has initialized any Ethernet cards.
> >> > : Otherwise Jordan's new DHCP support in sysinstall will not work well on
> >> > : laptops.
> >> >
> >> > I thought that -z did exactly that...
> >>
> >> I hoped it did, but it doesn't. It only slightly decreases the delay.
>
> Hmm... -z option sets "delay" variable to 1 and main() of pccardd has
>
> if (!dodebug && !delay)
> if (daemon(0, 0))
> die("fork failed");
> slots = readslots();
> if (slots == 0)
> die("no PC-CARD slots");
> if (delay)
> if (daemon(0, 0))
> die("fork failed");
>
>
> readslots() reads CIS, allocates driver and execute card_inserted().
> Pccardd daemonizes after finishing all these processes. PC-card
> sysinstall in -current probes ethernet interfaes after this
> initialization and always found them successfly.
>
> Are there any problems in above code?
This should work. Wasn't this code submitted by one of my co-workers at
SRI? If so, it *had* to work right, since the cards had to be setup and
working in his environment before /usr was mounted. :)
Nate
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907201521.JAA19404>
