Boot time - About rcscripts

Werner Almesberger werner at
Wed Jul 9 14:10:21 CEST 2008

Carsten Haitzler wrote:
> exquisite-write -wait 20
> i.e. - waiting for exquisite to come up and have its socket ready for
> writing.

Hmm, it this "wait 20 seconds, then try" or is it "try and time out
if you didn't get through within 20 seconds" ?

If it's the former, and what you're really concerned about is socket
creation, perhaps the following device would work:

- add a --background option
- in main, create the socket, then fork if background is set
- detach the foreground process

That way, you're guaranteed to have a socket you can open once the
(foreground half of the) program has terminated.

- Werner

More information about the openmoko-devel mailing list