#define MAXCOM 32
-int main_loop_continue = 1;
-
static const struct TreeNode* getSubCom (char **com, int n, int *t)
{
}
+int main_loop_continue;
static struct ngadmin *nga;
static sigjmp_buf jmpbuf;
static struct termios orig_term;
current_term.c_lflag |= ECHO;
tcsetattr(STDIN_FILENO, TCSANOW, ¤t_term);
- if (!batch)
+ if (!batch && main_loop_continue)
siglongjmp(jmpbuf, 1);
default:
sigsetjmp(jmpbuf, 1);
}
+ main_loop_continue = 1;
while (main_loop_continue) {
/* read user input */
line = NULL;