Oneshot mode doesn't exit.
Have the oneshot mode code call event loop exit routine, which causes irqbalance to correctly quit after one iteration. Signed-off-by: Krister Johansen <kjlx@templeofstupid.com>
This commit is contained in:
parent
5e61a82a9f
commit
9ea96c1fd8
|
@ -294,10 +294,12 @@ gboolean scan(gpointer data)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (keep_going)
|
||||
if (keep_going) {
|
||||
return TRUE;
|
||||
else
|
||||
} else {
|
||||
g_main_loop_quit(main_loop);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
void get_irq_data(struct irq_info *irq, void *data)
|
||||
|
@ -585,7 +587,7 @@ int main(int argc, char** argv)
|
|||
g_main_loop_run(main_loop);
|
||||
|
||||
g_main_loop_quit(main_loop);
|
||||
|
||||
|
||||
free_object_tree();
|
||||
free_cl_opts();
|
||||
|
||||
|
|
Loading…
Reference in a new issue