search for: curjob

Displaying 2 results from an estimated 2 matches for "curjob".

Did you mean: curios
2020 Mar 28
0
[klibc:update-dash] dash: jobs: Only clear gotsigchld when waiting for everything
...+++++------------------------------------- 1 file changed, 32 insertions(+), 62 deletions(-) diff --git a/usr/dash/jobs.c b/usr/dash/jobs.c index 400628ff..2c277153 100644 --- a/usr/dash/jobs.c +++ b/usr/dash/jobs.c @@ -96,8 +96,6 @@ static int ttyfd = -1; /* current job */ static struct job *curjob; -/* number of presumed living untracked jobs */ -static int jobless; STATIC void set_curjob(struct job *, unsigned); STATIC int jobno(const struct job *); @@ -555,8 +553,7 @@ showjobs(struct output *out, int mode) TRACE(("showjobs(%x) called\n", mode)); /* If not even one one j...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Add vfork support
...s.c @@ -53,6 +53,7 @@ #include <termios.h> #undef CEOF /* syntax.h redefines this */ #endif +#include "exec.h" #include "eval.h" #include "redir.h" #include "show.h" @@ -97,6 +98,9 @@ static int ttyfd = -1; /* current job */ static struct job *curjob; +/* Set if we are in the vforked child */ +int vforked; + STATIC void set_curjob(struct job *, unsigned); STATIC int jobno(const struct job *); STATIC int sprint_status(char *, int, int); @@ -839,20 +843,29 @@ growjobtab(void) * Called with interrupts off. */ -STATIC inline void -forkch...