tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make: remove wantToken and skip polling tokenWaitJob



Simon J. Gerraty <sjg%juniper.net@localhost> wrote:

> > While I most definitely support removal, I'm a little bit worried about
> > a corner case: what if there are no jobs being executed and the pipe
> > read fails. Can this code start busy looping until it manages to get
> > a token?
> 
> [+dsl] I'm not sure why the check for jobTokensRunning != 0
> was added to the case that read of token pipe failed.
> If jobTokensRunning is 0 and read failed (for EAGAIN)
> would be the only time you might want to sleep.

Eg. http://www.netbsd.org/~sjg/make-remove-wanttoken.diff



Home | Main Index | Thread Index | Old Index