a3822de23e
"If the shell is compiled with -DJOBS, this is all fine -- find wasn't stopped (it was killed), so it correctly uses WTERMSIG instead of WSTOPSIG. However, if the shell _isn't_ compiled with -DJOBS (which it isn't in d-i), only WSTOPSIG is used, which extracts the high byte instead of the low byte from the status code. Since the status code is 13 (SIGPIPE), "st" suddenly gets the value 0, which is equivalent to SIGEXIT. Thus, ash prints out "EXIT" on find's exit." |
||
---|---|---|
.. | ||
ash.c | ||
cmdedit.c | ||
cmdedit.h | ||
Config.in | ||
hush.c | ||
lash.c | ||
Makefile | ||
Makefile.in | ||
msh.c |