* [9front] My program is stuck at readimage
@ 2025-01-24 19:43 sirjofri
0 siblings, 0 replies; only message in thread
From: sirjofri @ 2025-01-24 19:43 UTC (permalink / raw)
To: 9front
Hi,
I started developing a drawfs environment, which is basically a devdraw (plus some other dev*) that runs as separate programs in user space. The end goal is to be able to start graphical programs (rio etc) inside that environment, and you can connect to that environment using a separate client program.
However, I have issues with the client program. Specifically, when reading the display buffer file from the drawfs filesystem using readimage, readimage blocks the program completely. It's my first program that I implement like that, so there's very likely an issue in my code. I should note that reading the display buffer file like "normal" (cat, page, etc) just works as intended, so the filesystem part should be correct.
If someone could throw an eye on it, that would be great. Here's the repo: https://shithub.us/sirjofri/drawfs/HEAD/info.html
The client program is currently called drawmgr.
For testing, you can do this (on an amd64 system):
In one window, run the t.rc script. This posts file descriptors to /srv/XXX.test(.cmd) and sets up the environment, so you can directly run "clock" inside it. The drawfs.test.cmd srv is most interesting here, as it contains the display buffer file (called "display").
In another window, you can run the drawmgr program using "-n test" parameters. This automatically sets up the namespace.
Bugs are expected, but maybe you can already see the big issue in the drawmgr program without running it.
Here's a direct link to the drawmgr source code: https://shithub.us/sirjofri/drawfs/9712751526835c0a190e8abcd6f495df9cc80b87/drawmgr/drawmgr.c/f.html
Thank you in advance
sirjofri
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-24 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-24 19:43 [9front] My program is stuck at readimage sirjofri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).