Displaying 3 results from an estimated 3 matches for "a3aeb33e".
2019 Jan 25
0
[klibc:update-dash] trap: Globally rename pendingsigs to pending_sig
...tin.c
@@ -207,7 +207,7 @@ readcmd(int argc, char **argv)
case 1:
break;
default:
- if (errno == EINTR && !pendingsigs)
+ if (errno == EINTR && !pending_sig)
continue;
/* fall through */
case 0:
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
index 89ceff4f..a3aeb33e 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -74,7 +74,7 @@ char sigmode[NSIG - 1];
/* indicates specified signal received */
static char gotsig[NSIG - 1];
/* last pending signal */
-volatile sig_atomic_t pendingsigs;
+volatile sig_atomic_t pending_sig;
/* received SIGCHLD */
int gots...
2020 Mar 28
0
[klibc:update-dash] dash: trap: Globally rename pendingsigs to pending_sig
...tin.c
@@ -207,7 +207,7 @@ readcmd(int argc, char **argv)
case 1:
break;
default:
- if (errno == EINTR && !pendingsigs)
+ if (errno == EINTR && !pending_sig)
continue;
/* fall through */
case 0:
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
index 89ceff4f..a3aeb33e 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -74,7 +74,7 @@ char sigmode[NSIG - 1];
/* indicates specified signal received */
static char gotsig[NSIG - 1];
/* last pending signal */
-volatile sig_atomic_t pendingsigs;
+volatile sig_atomic_t pending_sig;
/* received SIGCHLD */
int gots...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Add vfork support
...itcmd(int, char **);
struct job *makejob(union node *, int);
int forkshell(struct job *, union node *, int);
+struct job *vforkexec(union node *n, char **argv, const char *path, int idx);
int waitforjob(struct job *);
int stoppedjobs(void);
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
index a3aeb33e..1ad27e99 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -181,16 +181,19 @@ void
setsignal(int signo)
{
int action;
+ int lvforked;
char *t, tsig;
struct sigaction act;
+ lvforked = vforked;
+
if ((t = trap[signo]) == NULL)
action = S_DFL;
else if (*t != '\0')
act...