Kurtis Rader 483e9fdea2 check if locking takes too long
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 
2016-12-16 21:20:08 -08:00
..
2016-11-15 21:15:22 -08:00
2016-11-15 21:15:22 -08:00
2016-12-03 20:12:53 -08:00
2016-06-23 17:26:08 -07:00
2016-12-10 20:48:54 -08:00
2016-12-10 20:48:54 -08:00
2016-11-04 20:12:51 -07:00
2016-12-03 20:12:53 -08:00
2016-11-15 21:15:22 -08:00
2016-10-28 17:43:20 -07:00
2016-08-24 22:56:19 -07:00
2016-12-16 21:20:08 -08:00
2016-12-03 20:12:53 -08:00
2016-10-22 21:08:53 -07:00
2016-10-31 18:17:38 -07:00
2016-06-23 17:26:08 -07:00
2016-11-03 16:19:41 -07:00
2016-05-29 22:24:29 -07:00
2016-11-04 20:12:51 -07:00
2016-07-24 17:56:34 -07:00
2016-12-03 13:38:50 -08:00
2016-12-03 20:12:53 -08:00
2016-12-12 12:35:22 -08:00
2016-11-15 21:15:22 -08:00
2016-12-03 18:38:00 -08:00
2016-06-23 17:26:08 -07:00
2016-12-03 20:12:53 -08:00
2016-12-03 20:12:53 -08:00
2016-11-15 21:15:22 -08:00
2016-10-29 19:01:19 -07:00
2016-05-26 20:24:03 -07:00
2016-10-31 13:29:10 -07:00
2016-06-12 11:34:35 -07:00
2016-12-03 20:12:53 -08:00