ref: 511910e0acf695c728dab32f72c224007faaf79b
parent: 35baa5a175cb97fcaba95e5a54c510f723282fb5
author: qwx <qwx@sciops.net>
date: Fri Jan 14 12:48:51 EST 2022
page-rice: fix locking issue
--- a/page-rice
+++ b/page-rice
@@ -40,12 +40,12 @@
}
/* recursive display lock, called from main proc only */
-@@ -1691,6 +1694,8 @@
- addpage(root, "stdin", popenfile, strdup("/fd/0"), -1);
- for(; *argv; argv++)
+@@ -1693,6 +1696,8 @@
addpage(root, *argv, popenfile, strdup(*argv), -1);
-+ for(i=0; i<NPROC; i++)
-+ showpage(current);
drawlock(1);
++ for(i=0; i<NPROC; i++) /* rice */
++ showpage(current);
for(;;){
+ drawlock(0);
+ i=event(&e);