* [Cluster-devel] cluster/cman/qdisk score.c
@ 2008-01-24 14:58 lhh
0 siblings, 0 replies; 5+ messages in thread
From: lhh @ 2008-01-24 14:58 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: lhh at sourceware.org 2008-01-24 14:58:38
Modified files:
cman/qdisk : score.c
Log message:
Unblock signals after fork() so heuristics using signals don't hang
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/score.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.4&r2=1.1.2.5
--- cluster/cman/qdisk/score.c 2007/03/20 19:36:14 1.1.2.4
+++ cluster/cman/qdisk/score.c 2008/01/24 14:58:38 1.1.2.5
@@ -75,6 +75,24 @@
/**
+ Set all signal handlers to default for exec of a script.
+ ONLY do this after a fork().
+ */
+void
+restore_signals(void)
+{
+ sigset_t set;
+ int x;
+
+ for (x = 1; x < _NSIG; x++)
+ signal(x, SIG_DFL);
+
+ sigfillset(&set);
+ sigprocmask(SIG_UNBLOCK, &set, NULL);
+}
+
+
+/**
Spin off a user-defined heuristic
*/
static int
@@ -117,6 +135,7 @@
*/
set_priority(SCHED_OTHER, -1);
munlockall();
+ restore_signals();
argv[0] = "/bin/sh";
argv[1] = "-c";
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Cluster-devel] cluster/cman/qdisk score.c
@ 2008-01-24 14:58 lhh
0 siblings, 0 replies; 5+ messages in thread
From: lhh @ 2008-01-24 14:58 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL46
Changes by: lhh at sourceware.org 2008-01-24 14:58:54
Modified files:
cman/qdisk : score.c
Log message:
Unblock signals after fork() so heuristics using signals don't hang
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/score.c.diff?cvsroot=cluster&only_with_tag=RHEL46&r1=1.1.2.4&r2=1.1.2.4.4.1
--- cluster/cman/qdisk/score.c 2007/03/20 19:36:14 1.1.2.4
+++ cluster/cman/qdisk/score.c 2008/01/24 14:58:54 1.1.2.4.4.1
@@ -75,6 +75,24 @@
/**
+ Set all signal handlers to default for exec of a script.
+ ONLY do this after a fork().
+ */
+void
+restore_signals(void)
+{
+ sigset_t set;
+ int x;
+
+ for (x = 1; x < _NSIG; x++)
+ signal(x, SIG_DFL);
+
+ sigfillset(&set);
+ sigprocmask(SIG_UNBLOCK, &set, NULL);
+}
+
+
+/**
Spin off a user-defined heuristic
*/
static int
@@ -117,6 +135,7 @@
*/
set_priority(SCHED_OTHER, -1);
munlockall();
+ restore_signals();
argv[0] = "/bin/sh";
argv[1] = "-c";
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Cluster-devel] cluster/cman/qdisk score.c
@ 2008-01-24 17:00 lhh
0 siblings, 0 replies; 5+ messages in thread
From: lhh @ 2008-01-24 17:00 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: lhh at sourceware.org 2008-01-24 17:00:55
Modified files:
cman/qdisk : score.c
Log message:
Unblock signals after fork() so heuristics using signals don't hang
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/score.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2.4.3&r2=1.2.4.4
--- cluster/cman/qdisk/score.c 2007/03/20 19:37:04 1.2.4.3
+++ cluster/cman/qdisk/score.c 2008/01/24 17:00:50 1.2.4.4
@@ -75,6 +75,24 @@
/**
+ Set all signal handlers to default for exec of a script.
+ ONLY do this after a fork().
+ */
+void
+restore_signals(void)
+{
+ sigset_t set;
+ int x;
+
+ for (x = 1; x < _NSIG; x++)
+ signal(x, SIG_DFL);
+
+ sigfillset(&set);
+ sigprocmask(SIG_UNBLOCK, &set, NULL);
+}
+
+
+/**
Spin off a user-defined heuristic
*/
static int
@@ -117,6 +135,7 @@
*/
set_priority(SCHED_OTHER, -1);
munlockall();
+ restore_signals();
argv[0] = "/bin/sh";
argv[1] = "-c";
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Cluster-devel] cluster/cman/qdisk score.c
@ 2008-01-24 18:42 lhh
0 siblings, 0 replies; 5+ messages in thread
From: lhh @ 2008-01-24 18:42 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh at sourceware.org 2008-01-24 18:42:12
Modified files:
cman/qdisk : score.c
Log message:
Unblock signals after fork() so heuristics using signals don't hang
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/score.c.diff?cvsroot=cluster&r1=1.5&r2=1.6
--- cluster/cman/qdisk/score.c 2007/03/20 19:37:24 1.5
+++ cluster/cman/qdisk/score.c 2008/01/24 18:42:12 1.6
@@ -75,6 +75,24 @@
/**
+ Set all signal handlers to default for exec of a script.
+ ONLY do this after a fork().
+ */
+void
+restore_signals(void)
+{
+ sigset_t set;
+ int x;
+
+ for (x = 1; x < _NSIG; x++)
+ signal(x, SIG_DFL);
+
+ sigfillset(&set);
+ sigprocmask(SIG_UNBLOCK, &set, NULL);
+}
+
+
+/**
Spin off a user-defined heuristic
*/
static int
@@ -117,6 +135,7 @@
*/
set_priority(SCHED_OTHER, -1);
munlockall();
+ restore_signals();
argv[0] = "/bin/sh";
argv[1] = "-c";
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Cluster-devel] cluster/cman/qdisk score.c
@ 2008-01-29 21:26 lhh
0 siblings, 0 replies; 5+ messages in thread
From: lhh @ 2008-01-29 21:26 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL51
Changes by: lhh at sourceware.org 2008-01-29 21:26:39
Modified files:
cman/qdisk : score.c
Log message:
Fix #430574 - qdisk blocking signals in heuristics
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/score.c.diff?cvsroot=cluster&only_with_tag=RHEL51&r1=1.2.4.3&r2=1.2.4.3.2.1
--- cluster/cman/qdisk/score.c 2007/03/20 19:37:04 1.2.4.3
+++ cluster/cman/qdisk/score.c 2008/01/29 21:26:38 1.2.4.3.2.1
@@ -75,6 +75,24 @@
/**
+ Set all signal handlers to default for exec of a script.
+ ONLY do this after a fork().
+ */
+void
+restore_signals(void)
+{
+ sigset_t set;
+ int x;
+
+ for (x = 1; x < _NSIG; x++)
+ signal(x, SIG_DFL);
+
+ sigfillset(&set);
+ sigprocmask(SIG_UNBLOCK, &set, NULL);
+}
+
+
+/**
Spin off a user-defined heuristic
*/
static int
@@ -117,6 +135,7 @@
*/
set_priority(SCHED_OTHER, -1);
munlockall();
+ restore_signals();
argv[0] = "/bin/sh";
argv[1] = "-c";
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-29 21:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-24 14:58 [Cluster-devel] cluster/cman/qdisk score.c lhh
-- strict thread matches above, loose matches on Subject: below --
2008-01-24 14:58 lhh
2008-01-24 17:00 lhh
2008-01-24 18:42 lhh
2008-01-29 21:26 lhh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).