mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
483e9fdea2
If acquiring a lock on the history or uvar file takes more than 250 ms disable locking of the file. On systems with broken remote file system locking it can cause tens of seconds delay after running each command which can make the shell borderline unusable. This also changes history file locking to use flock() rather than fcntl() to be consistent with uvar file locking. It also implements the 250 ms time limit before giving up on locking. Fixes #685
14 lines
727 B
Text
14 lines
727 B
Text
// suppress all instances of varFuncNullUB: "Passing NULL after the last typed
|
|
// argument to a variadic function leads to undefined behaviour." That's
|
|
// because all the places we do this are valid and won't cause problems even
|
|
// on a ILP64 platform because we're careful about using NULL rather than 0.
|
|
varFuncNullUB
|
|
// Suppress the warning about unmatched suppressions. At the moment these
|
|
// warnings are emitted even when removing the suppression comment results in
|
|
// the warning being suppressed. In other words this unmatchedSuppression
|
|
// warnings are false positives.
|
|
unmatchedSuppression
|
|
|
|
memleak:src/env_universal_common.cpp
|
|
flockSemanticsWarning:src/env_universal_common.cpp
|
|
flockSemanticsWarning:src/history.cpp
|