flowtop: Fix hanging while waiting for collector
commit3beaa23d4d33b51a392b56f110c8773151ac19cc
authorVadim Kochan <vadim4j@gmail.com>
Mon, 6 Jul 2015 09:16:14 +0000 (6 12:16 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 13 Jul 2015 08:42:32 +0000 (13 10:42 +0200)
tree2f5789a584acdde540be3a7cebac59b88bfdfa12
parent49be1bd2f5f5c712e6828f659d4fbb9e27543391
flowtop: Fix hanging while waiting for collector

Fixed issue when flowtop hangs be cause of wrong using pthread cond
lockiing, so the lock should be locked first by calling thread before
call to pthread_cond_wait.

Fixes: 451275470106 ("flowtop: Don't init screen until collector is ready")
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
locking.h