Ensure reconfig signal doesn't interrupt request dispatch when (!continuous_mode)
authorSteven Luo <steven+maemo@steven676.net>
Tue, 5 Jan 2010 02:38:44 +0000 (18:38 -0800)
committerSteven Luo <steven+maemo@steven676.net>
Tue, 5 Jan 2010 02:38:44 +0000 (18:38 -0800)
commitd9eaacdb0796bfa089b4dea6fb5f1ad1d9835c44
tree1712b570fdb4693c23c1f15e8aa2706b8ffef409
parentc9e9ac75ac6874c21ac6703c551addf2d0b83b17
Ensure reconfig signal doesn't interrupt request dispatch when (!continuous_mode)

If SIGHUP is sent to a browser-switchboard process with continuous mode
off, the process will quit.  This is the right thing to do in most cases
(the next request will relaunch the process, at which point it'll read
the new config), but if we're in the middle of dispatching a request
when the signal arrives, quitting immediately will cause the request to
be lost.

Since browser-switchboard quits upon completion of a request when
continuous mode is off anyway, fix this by just ignoring SIGHUP while
handling requests when continuous mode is off.
dbus-server-bindings.c