hush: move the EXIT trap comment. no code changes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
a110c90de2
commit
de8c3f667a
@ -1358,9 +1358,10 @@ static void hush_exit(int exitcode)
|
|||||||
argv[1] = G.traps[0];
|
argv[1] = G.traps[0];
|
||||||
argv[2] = NULL;
|
argv[2] = NULL;
|
||||||
G.exiting = 1; /* prevent EXIT trap recursion */
|
G.exiting = 1; /* prevent EXIT trap recursion */
|
||||||
builtin_eval(argv);
|
|
||||||
/* Note: G.traps[0] is not cleared!
|
/* Note: G.traps[0] is not cleared!
|
||||||
* "trap" will still show it */
|
* "trap" will still show it, if executed
|
||||||
|
* in the handler */
|
||||||
|
builtin_eval(argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLE_HUSH_JOB
|
#if ENABLE_HUSH_JOB
|
||||||
|
Loading…
Reference in New Issue
Block a user