]> rtime.felk.cvut.cz Git - frescor/forb.git/commit
forb: Fix deadlock in executor
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 19 Feb 2011 22:57:48 +0000 (23:57 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 19 Feb 2011 22:57:48 +0000 (23:57 +0100)
commit6cab615cbf872ea1207847511eb1eb957cb4b212
treed200272a4441db0c57d7a344ba700da23852d877
parentbc421a4a4698bffca4b275705a2a17401b788a63
forb: Fix deadlock in executor

The first iteration of executor loop waited for the request without
actually checking that there is no request in the queue. Therefore,
when the client sent the request before the executor called
fosa_cond_wait()  for the first time, the executor blocked indefinitely.
src/executor.c