[pacman-dev] [PATCH 1/4] Revert refactoring in fa0c1e14

Allan McRae allan at archlinux.org
Sat Jun 28 21:27:31 EDT 2014


This will cause the code to break as soon as we handle another signal such
as SIGWINCH...

Signed-off-by: Allan McRae <allan at archlinux.org>
---

Well...  that didn't last long.

 src/pacman/pacman.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index e8c5f9e..baa0485 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -301,7 +301,7 @@ static void handler(int signum)
 			"Please submit a full bug report with --debug if appropriate.\n";
 		xwrite(err, msg, strlen(msg));
 		exit(signum);
-	} else if(signum != SIGTERM) {
+	} else if(signum == SIGINT || signum == SIGHUP) {
 		if(signum == SIGINT) {
 			msg = "\nInterrupt signal received\n";
 		} else {
-- 
2.0.1



More information about the pacman-dev mailing list