]> rtime.felk.cvut.cz Git - frescor/frsh-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)
commitdb297ef8dcf8b8eb256ecc05fffef30bad825d4a
tree3cde24068cb50e05632a83169c0288f40d45beed
parent4c53ab7e5b35000dec0f561ae12c985d69245037
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/forb/src/executor.c