-
Notifications
You must be signed in to change notification settings - Fork 0
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
safe vs. unsafe FFI calls #1
Comments
I don't feel strongly about either way. I was merely following the convention followed by other packages that system calls that do not generally block are imported as |
Interesting, thanks for the info - I'll followup there and then update this issue. |
FYI, on haskell/unix#34, the agreement is that unsafe is the wrong approach. I'll try to send a pull request later this week (if you don't beat me to it). |
I just uploaded a new version (v0.1.0.1) on hackage for that. Thanks for the report. |
The import of statvfs is:
Since this function is doing a system call, I'm not sure why it is marked as unsafe - in case of remote filesystems, this could block for a long time (in real world terms). What do you think about making this
safe
, since the overhead of the syscall will anyway make the Haskell RTS overhead most likely moot?The text was updated successfully, but these errors were encountered: