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 would also like to have something like this in the library (and would even make the contribution if the maintainers agreed with the addition) but note that you can get what you want with little code:
@BraulioVM I think the addition would make sense. Note that I would want to keep backwards compatibility. So it can't be a change in the existing pread function. I'd suggest a new function pread_status (and pwrite_status too), or maybe a module WithProcessStatus which has a pread and pwrite function. That second approach is good if there are other existing functions which might benefit from the same generalisation.
Similar to #216 , but instead of handling the error for the user, return the status and let the user handle it.
ie
It will also be great to have some documentation around
pread
that says it will be raise exception on non-zero return.The text was updated successfully, but these errors were encountered: