vt: fix race-condition in signal handling
authorDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 30 Dec 2011 12:47:36 +0000 (13:47 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 30 Dec 2011 12:47:36 +0000 (13:47 +0100)
commit84248b0ac7bb27922c1e7b6cbcbde95e7236926f
treea0e823db74382316d43bcb15b029622c34ff1ec1
parent068591e395a9743b88e976634000e4cf9457fdc6
vt: fix race-condition in signal handling

Currently, we set up our VT with SIGUSR1/2 signals and after that the user may
connect the signal handlers to the eloop. However, if we receive a signal in
between, the signal gets lost.

Therefore, this simply merges the kmscon_vt_connect_eloop function into
kmscon_vt_open as there is no obvious reason to split them.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/vt.c
src/vt.h
tests/test_console.c
tests/test_vt.c