ref: 31e135f4db7f25c92d2dcb78fcd1df04c49d24e5
parent: 5b9b021d014e0fdfbd67dc2e28afa076a9cc262c
author: phil9 <telephil9@gmail.com>
date: Wed May 8 03:56:39 EDT 2024
preserve namespace when showing raw message (thanks Romano) if upas is started after rio, showing the raw message will not work as the new window will be in a new namespace. Start the new window with the -m flag to preserve the namespace mongrel was started in.
--- a/index.c
+++ b/index.c
@@ -319,8 +319,8 @@
char buf[1024] = {0};
if(rfork(RFPROC|RFNOWAIT|RFFDG|RFREND) == 0){
- snprint(buf, sizeof buf, "window -noscroll -dx 800 -dy 1000 'cat %s/rawunix; read'", m->path);
- execl("/bin/rc", "rc", "-c", buf, 0);
+ snprint(buf, sizeof buf, "cat %s/rawunix; read", m->path);
+ execl("/bin/window", "window", "-m", "-noscroll", "-dx", "800", "-dy", "1000", "rc", "-c", buf, 0);
fprint(2, "execl failed: %r");
threadexitsall("execl");
}