when ^C’ing out of an interactive shell, also throw away the here documents (probably leaks, maybe not due to quitenv, but not much)
This commit is contained in:
parent
f5ccc2feb3
commit
fc27886680
3
main.c
3
main.c
|
@ -34,7 +34,7 @@
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.233 2012/10/22 20:19:14 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.234 2012/10/30 20:07:00 tg Exp $");
|
||||||
|
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
|
|
||||||
|
@ -795,6 +795,7 @@ shell(Source * volatile s, volatile bool toplevel)
|
||||||
*/
|
*/
|
||||||
/* toss any input we have so far */
|
/* toss any input we have so far */
|
||||||
s->start = s->str = null;
|
s->start = s->str = null;
|
||||||
|
herep = heres;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
|
|
Loading…
Reference in New Issue