ref: 7e48e47ab0b00dfe5674b3555a52cace2eb12b98
parent: 550a8ec5f943b87172668581e67128d4770c6e48
author: mischief <mischief@offblast.org>
date: Tue Sep 11 15:34:02 EDT 2018
kern: fix another longjmp bug declare cnew as volatile, otherwise cclose panics with: panic: cclose 0x40952a fixes drawterm -G on freebsd.
--- a/kern/chan.c
+++ b/kern/chan.c
@@ -1162,7 +1162,8 @@
namec(char *aname, int amode, int omode, ulong perm)
{
int len, n, t, nomount;
- Chan *c, *cnew;
+ Chan *c;
+ Chan *volatile cnew;
Path *path;
Elemlist e;
Rune r;