Displaying 6 results from an estimated 6 matches for "minsig".
Did you mean:
minig
2019 Jan 25
0
[klibc:update-dash] trap: Implement POSIX.1-2008 trap reset behaviour
...UDE "trap.h"
INIT {
@@ -111,7 +113,7 @@ trapcmd(int argc, char **argv)
}
return 0;
}
- if (!ap[1])
+ if (!ap[1] || decode_signum(*ap) >= 0)
action = NULL;
else
action = *ap++;
@@ -399,18 +401,27 @@ out:
/* NOTREACHED */
}
-int decode_signal(const char *string, int minsig)
+static int decode_signum(const char *string)
{
- int signo;
+ int signo = -1;
if (is_number(string)) {
signo = atoi(string);
- if (signo >= NSIG) {
- return -1;
- }
- return signo;
+ if (signo >= NSIG)
+ signo = -1;
}
+ return signo;
+}
+
+int decode_signal(const char *s...
2020 Mar 28
0
[klibc:update-dash] dash: trap: Implement POSIX.1-2008 trap reset behaviour
...UDE "trap.h"
INIT {
@@ -111,7 +113,7 @@ trapcmd(int argc, char **argv)
}
return 0;
}
- if (!ap[1])
+ if (!ap[1] || decode_signum(*ap) >= 0)
action = NULL;
else
action = *ap++;
@@ -399,18 +401,27 @@ out:
/* NOTREACHED */
}
-int decode_signal(const char *string, int minsig)
+static int decode_signum(const char *string)
{
- int signo;
+ int signo = -1;
if (is_number(string)) {
signo = atoi(string);
- if (signo >= NSIG) {
- return -1;
- }
- return signo;
+ if (signo >= NSIG)
+ signo = -1;
}
+ return signo;
+}
+
+int decode_signal(const char *s...
2019 Jan 25
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...%s", strerror(errno));
return nullstr;
}
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
index 1e2a8677..182fa7ac 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -395,48 +395,45 @@ out:
/* NOTREACHED */
}
-/*
- * Decode a signal name
- */
int decode_signal(const char *string, int minsig)
{
- int i;
+ int signo;
if (is_number(string)) {
- i = atoi(string);
- if (i >= NSIG) {
+ signo = atoi(string);
+ if (signo >= NSIG) {
return -1;
}
- return i;
+ return signo;
}
- for ( i = minsig ; i < NSIG ; i++ ) {
- if ( sys_sigabbrev[i] &&
- !strc...
2020 Mar 28
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...%s", strerror(errno));
return nullstr;
}
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
index 1e2a8677..182fa7ac 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -395,48 +395,45 @@ out:
/* NOTREACHED */
}
-/*
- * Decode a signal name
- */
int decode_signal(const char *string, int minsig)
{
- int i;
+ int signo;
if (is_number(string)) {
- i = atoi(string);
- if (i >= NSIG) {
+ signo = atoi(string);
+ if (signo >= NSIG) {
return -1;
}
- return i;
+ return signo;
}
- for ( i = minsig ; i < NSIG ; i++ ) {
- if ( sys_sigabbrev[i] &&
- !strc...
2008 Jan 14
0
clusterwise regression from fpc (fixed point clustering) package
...brary(fpc)unabh <- read.table("G:/Data_Files/SPSS Files/unabh.csv", sep=";", header=TRUE)abh <- read.table("G:/Data_Files/SPSS Files/abh.csv", sep=";", header=TRUE)m <- as.matrix(unabh)attach(abh)rmt1 <- regmix(m, VVV, ir=1, nclus=1:2,icrit=1.e-5, minsig=1.e-6, warning=TRUE)write.table(rmt1$g)
this is just an example i have tried other nclusters and without the warning=TRUE and without any instruction beyond the variables but when trying more clusters he never stops calculating (maybe there are too many respondents r.b. 4000 ???)
my objecti...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Add vfork support
...= S_HARD_IGN;
+ if (!vforked)
+ sigmode[signo - 1] = S_HARD_IGN;
}
@@ -283,6 +288,9 @@ ignoresig(int signo)
void
onsig(int signo)
{
+ if (vforked)
+ return;
+
if (signo == SIGCHLD) {
gotsigchld = 1;
if (!trap[SIGCHLD])
@@ -455,6 +463,14 @@ int decode_signal(const char *string, int minsig)
return -1;
}
+void sigblockall(sigset_t *oldmask)
+{
+ sigset_t mask;
+
+ sigfillset(&mask);
+ sigprocmask(SIG_SETMASK, &mask, oldmask);
+}
+
/*
* Human-readable signal name
*/
diff --git a/usr/dash/trap.h b/usr/dash/trap.h
index a095b0e1..bbff1842 100644
--- a/usr/dash/trap.h
++...