Skip to content

Commit 0581bff

Browse files
committed
Modified README with example of filesystem that does not support locking and flock test.
1 parent 5564a87 commit 0581bff

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,17 @@ cppimport.settings['lock_timeout'] = 10*60 # 10 mins
175175
You should not use `force_rebuild` when importing concurrently.
176176

177177
### Acquiring the lock hangs or times out unexpectedly - what's going on?
178-
Certain filesystems do not support file locking. You can disable the lock
179-
in the settings:
178+
Certain platforms (e.g. those running
179+
a Data Virtualization Service, DVS) do not support file locking. If you're on Linux with access to `flock`, you can test whether
180+
locking is supported (credit to [this page](https://help.univention.com/t/howto-verify-the-mounted-filesystem-supports-file-locking/10149)):
181+
182+
```bash
183+
touch testfile
184+
flock ./testfile true && echo ok || echo nok
185+
```
186+
187+
If locking is not supported, you can disable the file lock in
188+
the cppimport global settings:
180189

181190
```python
182191
cppimport.settings['use_filelock'] = False

0 commit comments

Comments
 (0)