按這裡回到我的烘焙雞 🏠
This topic is a proceeding from Agda in WebAssembly & Experiments on Language Servers. I aim to study deeper on replicating POSIX I/O mechanism.
tl;dr, poll_oneoff for WASI preview 1 is difficult to get right. Will making stdin non-blocking help?
Let's see the following sample code:
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>