ash: tweak comments, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
ae351311da
commit
a9047e0980
1 changed files with 7 additions and 6 deletions
13
shell/ash.c
13
shell/ash.c
|
@ -425,9 +425,10 @@ struct globals_misc {
|
||||||
struct jmploc *exception_handler;
|
struct jmploc *exception_handler;
|
||||||
|
|
||||||
/*volatile*/ int suppress_int; /* counter */
|
/*volatile*/ int suppress_int; /* counter */
|
||||||
/* ^^^^^^^ removed "volatile" since gcc would turn suppress_int++ into ridiculouls
|
/* ^^^^^^^ removed "volatile" since on x86, gcc turns suppress_int++
|
||||||
* 3-insn sequence otherwise.
|
* into ridiculous 3-insn sequence otherwise.
|
||||||
* We don't change suppress_int asyncronously (in a signal handler), but we do read it async.
|
* We don't change suppress_int asyncronously (in a signal handler),
|
||||||
|
* but we do read it async.
|
||||||
*/
|
*/
|
||||||
volatile /*sig_atomic_t*/ smallint pending_int; /* 1 = got SIGINT */
|
volatile /*sig_atomic_t*/ smallint pending_int; /* 1 = got SIGINT */
|
||||||
volatile /*sig_atomic_t*/ smallint got_sigchld; /* 1 = got SIGCHLD */
|
volatile /*sig_atomic_t*/ smallint got_sigchld; /* 1 = got SIGCHLD */
|
||||||
|
@ -9438,7 +9439,7 @@ evaltree(union node *n, int flags)
|
||||||
}
|
}
|
||||||
if (flags & EV_EXIT) {
|
if (flags & EV_EXIT) {
|
||||||
exexit:
|
exexit:
|
||||||
raise_exception(EXEND);
|
raise_exception(EXEND); /* does not return */
|
||||||
}
|
}
|
||||||
|
|
||||||
popstackmark(&smark);
|
popstackmark(&smark);
|
||||||
|
@ -10466,7 +10467,7 @@ evalcommand(union node *cmd, int flags)
|
||||||
|
|
||||||
/* We have a redirection error. */
|
/* We have a redirection error. */
|
||||||
if (spclbltin > 0)
|
if (spclbltin > 0)
|
||||||
raise_exception(EXERROR);
|
raise_exception(EXERROR); /* does not return */
|
||||||
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
@ -14571,7 +14572,7 @@ procargs(char **argv)
|
||||||
optlist[i] = 2;
|
optlist[i] = 2;
|
||||||
if (options(&login_sh)) {
|
if (options(&login_sh)) {
|
||||||
/* it already printed err message */
|
/* it already printed err message */
|
||||||
raise_exception(EXERROR);
|
raise_exception(EXERROR); /* does not return */
|
||||||
}
|
}
|
||||||
xargv = argptr;
|
xargv = argptr;
|
||||||
xminusc = minusc;
|
xminusc = minusc;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue