bankd: No need to handle SIGMAPDEL if we're not mapped yet
Change-Id: I187b833a9b7ec3d3763e21b5c88a3fa39ba0c4c7
This commit is contained in:
parent
f34fb79cc1
commit
a8d945e191
|
@ -431,9 +431,11 @@ static void handle_sig_mapdel(int sig)
|
||||||
{
|
{
|
||||||
LOGW(g_worker, "SIGMAPDEL received: Main thread informs us our map is gone\n");
|
LOGW(g_worker, "SIGMAPDEL received: Main thread informs us our map is gone\n");
|
||||||
OSMO_ASSERT(sig == SIGMAPDEL);
|
OSMO_ASSERT(sig == SIGMAPDEL);
|
||||||
g_worker->slot.bank_id = 0xffff;
|
if (g_worker->state >= BW_ST_CONN_CLIENT_MAPPED) {
|
||||||
g_worker->slot.slot_nr = 0xffff;
|
g_worker->slot.bank_id = 0xffff;
|
||||||
worker_set_state(g_worker, BW_ST_CONN_CLIENT_UNMAPPED);
|
g_worker->slot.slot_nr = 0xffff;
|
||||||
|
worker_set_state(g_worker, BW_ST_CONN_CLIENT_UNMAPPED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_sig_usr1(int sig)
|
static void handle_sig_usr1(int sig)
|
||||||
|
|
Loading…
Reference in New Issue