signals: fix race condition with sigwait()
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 31 May 2008 16:07:05 +0000 (19:07 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 31 May 2008 16:07:05 +0000 (19:07 +0300)
commited6a92ec6518a92167dca6c3ebb90c42c9c3de53
treef19a83abe22c8bebc4cbe710b90557442399d2ae
parent425d6074da0f80e93ba092507c487068ada8e054
signals: fix race condition with sigwait()

The signal thread may catch a signal before the interface thread is
initialized. We need to check signum before the first wait.
modules/control/signals.c