]> git.tuebingen.mpg.de Git - paraslash.git/commit
gui: Improve config reload.
authorAndre Noll <maan@systemlinux.org>
Thu, 13 Mar 2014 08:41:44 +0000 (09:41 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 May 2014 13:48:54 +0000 (15:48 +0200)
commit4207df0cbc1fcaa2ddb76febf82f25a23a0fb62d
treeb63933fbb092de976beb53ac011c46adb215782f
parent18d37ebfe2d78fc0a0c5ade216aa1b13a89bc768
gui: Improve config reload.

There are two ways to make para_gui reload its config file: Sending
SIGUSR1 and running the internal reread_conf command. When SIGUSR1
is received, signal_post_select() calls com_reread_conf(). This is
a layer violation since command handlers should only be called from
the input task.

This patch provides the generic function reread_conf() which is called
from both the command handler and from signal_post_select().
gui.c