You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why this is failing, mentioned it on Discord and was asked to open an issue:
$ mojo run src/main.mojo
Unhandled exception caught during execution: unable to remove existing file /tmp/mojo.fifo
mojo: error: execution exited with a non-zero result: 1
diocletiann
changed the title
[BUG] Opening a unix fifo in "write" mode throws an exception
[BUG] Opening a unix fifo in "write" mode raises an exception
Jul 9, 2024
Looks like we're attempting to clear the the file before writing. This reproduces if the file is in a location that's owned by root but doesn't reproduce if the file is in a location owned by the user.
Looks like we're attempting to clear the the file before writing. This reproduces if the file is in a location that's owned by root but doesn't reproduce if the file is in a location owned by the user.
Well even in a location owned by the user, I tried open() with a text file and it deleted the file before it could even be read.
Does that happen when you open it for reading with "r". I would expect that to happen when it's open for writing because the file is cleared out before writing happens….I believe that's how it works in Python as well.
Bug description
I'm not sure why this is failing, mentioned it on Discord and was asked to open an issue:
This is the pipe:
Steps to reproduce
System information
The text was updated successfully, but these errors were encountered: