Calvin Rose
Calvin Rose
This should be fixed for me as of 12630d3e546cf5a1105cfabc2513d91bdfd23031 - the issue was janet_unmarshal_stream didn't re-register the stream with the event loop.
Is the segfault still happening? The 100% cpu is not yet addressed
Found the issue, the problem is that passing a valid file descriptor to poll with events = 0 immediately returns with POLLHUP. See https://groups.google.com/g/comp.unix.programmer/c/bNNadBIEpTo/m/G5gs1mqNhbIJ?pli=1 for a conversation and workaround.
@czkz Thanks for that secondary repro, that seems to be a closely related issue with the poll backend. This is not fixed by https://github.com/janet-lang/janet/commit/a9b8f8e8a9d75fee10a3d036854d283a9d10600e however
I actually did an experiment where module/paths, module/loaders, etc. were only defaults for dynamic bindings, and never merged in since nobody every asked for it and it seemed to make...
> I was a little surprised that dynamic bindings aren't propagated through imports This now works on the latest master @afranchuk a bit belated, but does this work for you?...
So the issue here is there is an explicit macro expansion here inside the if-let macro that doesn't preserve the source location information. We can fix this issue by making...
Building on this, I have recently pushed code that extends `os/exit` with a `force` parameter which allows calling `_exit` instead of `exit`. This circumvents the issue where `exit` needs to...
This might be something better with spork. Linux, and I suspect other operating systems, make reading and writing from the file essential synchronous. A re-implementation of slurp that uses `os/open`...
Even if you use poll or select on files in Linux, reading and writing can still block. Yes, for special files and pipes this might fix a problem but I...