Commit 5088854
authored
Support Unix systems without O_NOFOLLOW (#463)
Acquiring a lock uses the `O_NOFOLLOW` flag when calling `open`.
However, this flag is not available on all platforms, such as GraalPy,
causing an `AttributeError` to be raised when attempting to acquire a
lock. According to the Python docs:
> The above constants are extensions and not present if they are not
> defined by the C library.
This handles such platforms by checking for the presence of the
`O_NOFOLLOW` flag first.1 parent 377f622 commit 5088854
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
0 commit comments