diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-23 18:56:20 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-23 18:56:20 +0200 |
commit | eef4565003def0a1e72bf381665027ebe0420c6f (patch) | |
tree | bd62103648d827103746706f99eb7339cf28c030 /sys/lib/python/idlelib/ZoomHeight.py | |
parent | 440202d029af36e5e52545a3badd1ea459961f84 (diff) |
libc: avoid static table and supurious reads in nsec()
use two per process memory slots, one for the
pid and one for the fd instead of a global table
avoiding the case when the table gets full.
instead of calling pread() on the cached fd
(dangerous as it has side effects when the
fd was not closed), we check if the cached fd
is still good using fd2path() when called
the first time in this process.
Diffstat (limited to 'sys/lib/python/idlelib/ZoomHeight.py')
0 files changed, 0 insertions, 0 deletions