Mercurial > hg > toybox
changeset 1534:83cac28515a3 draft
xexec() recursion limiter has to go after rebound or toy_init() zeroes it.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 26 Oct 2014 13:34:33 -0500 |
parents | 3c77af6f81cc |
children | b50de98c9708 |
files | toys.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/toys.h Sun Oct 26 12:56:41 2014 -0500 +++ b/toys.h Sun Oct 26 13:34:33 2014 -0500 @@ -132,10 +132,10 @@ int toycount; // Total number of commands in this build int signal; // generic_signal() records what signal it saw here int signalfd; // and writes signal to this fd, if set - int recursion; // How many nested calls to toy_exec() // This is at the end so toy_init() doesn't zero it. jmp_buf *rebound; // longjmp here instead of exit when do_rebound set + int recursion; // How many nested calls to toy_exec() } toys; // Two big temporary buffers: one for use by commands, one for library functions