Displaying 8 results from an estimated 8 matches for "stoppedjobs".
2010 Apr 02
2
(fwd) dash fix for job control off warning
...ocket test.
>
Pulled this; there seems to be a problem with the new version of dash
with job control off. I can't tell if it is just a warning or is a
manifest bug.
The solution is simple:
--- a/usr/dash/jobs.h
+++ b/usr/dash/jobs.h
@@ -105,5 +105,5 @@ int waitforjob(struct job *);
int stoppedjobs(void);
#if ! JOBS
-#define setjobctl(on) /* do nothing */
+#define setjobctl(on) ((void)(on)) /* do nothing */
#endif
... to keep the code syntactically valid even when setjobctl() is used
as the body of an if statement.
-hpa
----- End forwarded message -----
--
maks
2020 Mar 28
0
[klibc:update-dash] dash: main: Only set savestatus in exitcmd
...s <ben at decadent.org.uk>
---
usr/dash/main.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/usr/dash/main.c b/usr/dash/main.c
index fcd3e7d2..9f037173 100644
--- a/usr/dash/main.c
+++ b/usr/dash/main.c
@@ -339,13 +339,8 @@ exitcmd(int argc, char **argv)
if (stoppedjobs())
return 0;
- if (argc > 1) {
- int status = number(argv[1]);
-
- exitstatus = status;
- if (savestatus >= 0)
- savestatus = status;
- }
+ if (argc > 1)
+ savestatus = number(argv[1]);
exraise(EXEXIT);
/* NOTREACHED */
2020 Mar 28
0
[klibc:update-dash] dash: main: Print \n upon EOF (CTRL-D) when run interactively
...---
usr/dash/main.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/usr/dash/main.c b/usr/dash/main.c
index e8e42565..6d53e009 100644
--- a/usr/dash/main.c
+++ b/usr/dash/main.c
@@ -221,8 +221,15 @@ cmdloop(int top)
if (!top || numeof >= 50)
break;
if (!stoppedjobs()) {
- if (!Iflag)
+ if (!Iflag) {
+ if (iflag) {
+ out2c('\n');
+#ifdef FLUSHERR
+ flushout(out2);
+#endif
+ }
break;
+ }
out2str("\nUse \"exit\" to leave shell.\n");
}
numeof++;
2010 Apr 06
1
[patch v2] dash fix for job control off warning
...is just a warning or is a
manifest bug.
usr/dash/trap.c: In function `exitshell':
usr/dash/trap.c:376: warning: suggest braces around empty body in an `if' statement
The solution is simple:
--- a/usr/dash/jobs.h
+++ b/usr/dash/jobs.h
@@ -105,5 +105,5 @@ int waitforjob(struct job *);
int stoppedjobs(void);
#if ! JOBS
-#define setjobctl(on) /* do nothing */
+#define setjobctl(on) ((void)(on)) /* do nothing */
#endif
... to keep the code syntactically valid even when setjobctl() is used
as the body of an if statement.
-hpa
----- End forwarded message -----
--
maks
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Exit without arguments in a trap should use status outside traps
...int savestatus; /* exit status of last command outside traps */
struct backcmd { /* result of evalbackcmd */
diff --git a/usr/dash/main.c b/usr/dash/main.c
index f79ad7dd..29a258d3 100644
--- a/usr/dash/main.c
+++ b/usr/dash/main.c
@@ -339,8 +339,15 @@ exitcmd(int argc, char **argv)
{
if (stoppedjobs())
return 0;
- if (argc > 1)
- exitstatus = number(argv[1]);
+
+ if (argc > 1) {
+ int status = number(argv[1]);
+
+ exitstatus = status;
+ if (savestatus >= 0)
+ savestatus = status;
+ }
+
exraise(EXEXIT);
/* NOTREACHED */
}
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
ind...
[klibc:update-dash] dash: [BUILTIN] Exit without arguments in a trap should use status outside traps
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Exit without arguments in a trap should use status outside traps
...int savestatus; /* exit status of last command outside traps */
struct backcmd { /* result of evalbackcmd */
diff --git a/usr/dash/main.c b/usr/dash/main.c
index f79ad7dd..29a258d3 100644
--- a/usr/dash/main.c
+++ b/usr/dash/main.c
@@ -339,8 +339,15 @@ exitcmd(int argc, char **argv)
{
if (stoppedjobs())
return 0;
- if (argc > 1)
- exitstatus = number(argv[1]);
+
+ if (argc > 1) {
+ int status = number(argv[1]);
+
+ exitstatus = status;
+ if (savestatus >= 0)
+ savestatus = status;
+ }
+
exraise(EXEXIT);
/* NOTREACHED */
}
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
ind...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Add vfork support
...char **);
@@ -101,6 +104,7 @@ void showjobs(struct output *, int);
int waitcmd(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[si...
2010 Mar 28
1
[git pull v3] dash, sh4, ipconfig, dprintf, fstype, README's
hello hpa!
added on top of queue ext4 fix, that Ubuntu is carrying from cjwatson.
Got missed out in previous pull requests. Btrfs recognition in fstype.
the patch queue contains sync with latest dash, sh4 fix by Debian porters,
dprintf usage in ipconfig, kinit and nfsmount instead of buggy DEBUG
macro. ipconfig memcpy usage to avoid strict aliasing warnings.
Some interesting README's got