From a6a63a147e4e28a1ac700938c6e7694c6de97e5d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 13 Nov 2003 14:34:33 +0000 Subject: 19242: Make job table dynamically reallocatable. --- Src/init.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Src/init.c') diff --git a/Src/init.c b/Src/init.c index 0befe5e9b..b4b7e6f97 100644 --- a/Src/init.c +++ b/Src/init.c @@ -1207,7 +1207,7 @@ zsh_main(int argc, char **argv) setlocale(LC_ALL, ""); #endif - init_hackzero(argv, environ); + init_jobs(argv, environ); /* * Provisionally set up the type table to allow metafication. @@ -1261,6 +1261,13 @@ zsh_main(int argc, char **argv) init_misc(); for (;;) { + /* + * See if we can free up some of jobtab. + * We only do this at top level, because if we are + * executing stuff we may refer to them by job pointer. + */ + maybeshrinkjobtab(); + do loop(1,0); while (tok != ENDINPUT && (tok != LEXERR || isset(SHINSTDIN))); -- cgit 1.4.1