Thread (18 messages) 18 messages, 3 authors, 2011-08-15

Re: [PATCH v2 5/7] xfsdump: rework dialog to use main signal handler

From: Alex Elder <hidden>
Date: 2011-08-10 21:47:58

On Thu, 2011-08-04 at 17:30 -0500, Bill Kendall wrote:
xfsdump currently swaps in a different signal handler for the duration
of a dialog. This patch changes the code to have a global signal
handler which will first give the dialog a chance to process the
signal. If a dialog is not active or if it is not interested in the
signal, the signal will be processed as usual.
Yay!  I guess I wasn't alone in being confused by
the signal handlers...
There is one side effect to this change. SIGQUIT is now caught in the
miniroot/pipeline case as the handler needs to be setup in case a
dialog needs it. The signal handler will exit in this case just as
if SIGQUIT was not caught, the only real difference being that a
core file will not be generated.
Sounds OK to me.

Your dialog signal handler is clever, and I like it.
Again you should make dlog_registered_sigs have a
"volatile" qualifier.

Otherwise this looks good.

Reviewed-by: Alex Elder <redacted>
Signed-off-by: Bill Kendall <redacted>

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help