-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not run example in documentation due to error on MacOS #111
Comments
Does |
Negative: it does not produce any error |
Hm, OK. What about if it's
|
Good golf! $ perl6 -e 'react { my Cannot flush handle: Failed to flush filehandle: Operation not supported |
$*ERR is not a problem $ perl6 -e '$*OUT.flush' | cat |
Seems like a moarvm bug to me. Since flush is implemented as fsync in moarvm, but.. $ perl6 -e 'use NativeCall; sub fsync(int32 --> int32) is native { }; say fsync(1)' | cat which is right. Since pipes are not synchronous. |
Hm, though it seems to work out on various platforms. I wonder what it should be using... |
C fflush is a no-op on pipes. I suspect that the linux kernel fsync on pipes is also a no-op, on Mac (and possibly freebsd) it returns errors. |
Sorry I cannot help you in deciding what it should be. I am not enough a POSIX expert |
Then,
Then open a web browser, http://localhost:20000
The page does not show, on the shell the following error:
⚠ hello Cannot flush handle: Failed to flush filehandle: Operation not supported
⚠ hello in block at /usr/local/Cellar/rakudo/2019.07.1/share/perl6/site/sources/794E18F5F4F80DEE905DE049F8655401F940C814 (Cro::HTTP::Log::File) line 28
⚠ hello in block at /usr/local/Cellar/rakudo/2019.07.1/share/perl6/site/sources/D69ADAA9BE77DD33B9702EA1BCD4D35E6379EA88 (Cro::HTTP::Internal) line 45
⚠ hello in block at /usr/local/Cellar/rakudo/2019.07.1/share/perl6/site/sources/9A69BC70F2D8C7BD950C926E19009FF093ED8524 (Cro::HTTP::Router) line 232
⚠ hello
The text was updated successfully, but these errors were encountered: