summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2018-05-20 19:53:08 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-05-20 19:53:08 (GMT)
commit74795d019d019e72163b7e0549dfb1679f1cfbe0 (patch) (side-by-side diff)
tree9669211c93f3872678db2d24efc2bc04fa027e17
parent7285d053c821a4d7d8f312a07ad919c528fae224 (diff)
downloadpies-74795d019d019e72163b7e0549dfb1679f1cfbe0.tar.gz
pies-74795d019d019e72163b7e0549dfb1679f1cfbe0.tar.bz2
Bugfix
* src/pies.c (setsigvhan): Fix setting signals
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/pies.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pies.c b/src/pies.c
index 997882b..c0c1306 100644
--- a/src/pies.c
+++ b/src/pies.c
@@ -1660,11 +1660,11 @@ setsigvhan (RETSIGTYPE (*handler) (int signo), int *sigv, int sigc)
act.sa_flags = 0;
sigemptyset (&act.sa_mask);
for (i = 0; i < sigc; i++)
- sigaddset (&act.sa_mask, i);
+ sigaddset (&act.sa_mask, sigv[i]);
+ act.sa_handler = handler;
for (i = 0; i < sigc; i++)
{
- act.sa_handler = handler;
sigaction (sigv[i], &act, NULL);
}
}

Return to:

Send suggestions and report system problems to the System administrator.