Date: Wed, 21 Jul 1999 00:03:29 +0900 (JST) From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) To: obrien@NUXI.com Cc: imp@village.org, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: pccardd patches for review Message-ID: <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> In-Reply-To: Your message of "Tue, 20 Jul 1999 23:49:41 JST". <19990720074941.J1607@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <19990720074941.J1607@dragon.nuxi.com> obrien@NUXI.com writes: >> > 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? -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University <hosokawa@itc.keio.ac.jp> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907201503.AAA23555>