commit 9f20fadee1bc3eea7c26099b8b3427faeed0014e
parent 0f7a309adcf25470e53a41c32cc53c7835ae344d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 7 Sep 2020 11:44:29 +0200
tweaks: normalize the indentation after the previous change
Diffstat:
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -882,17 +882,16 @@ void signal_init(void)
sigaction(SIGWINCH, &deed, NULL);
#endif
- /* Block all other signals in the suspend and continue handlers.
- * If we don't do this, other stuff interrupts them! */
- sigfillset(&deed.sa_mask);
+ /* In the suspend and continue handlers, block all other signals.
+ * If we don't do this, other stuff interrupts them! */
+ sigfillset(&deed.sa_mask);
#ifdef SIGTSTP
- /* Trap a normal suspend (^Z) so we can handle it ourselves. */
- deed.sa_handler = do_suspend;
- sigaction(SIGTSTP, &deed, NULL);
+ deed.sa_handler = do_suspend;
+ sigaction(SIGTSTP, &deed, NULL);
#endif
#ifdef SIGCONT
- deed.sa_handler = do_continue;
- sigaction(SIGCONT, &deed, NULL);
+ deed.sa_handler = do_continue;
+ sigaction(SIGCONT, &deed, NULL);
#endif
#if !defined(NANO_TINY) && !defined(DEBUG)