Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #88386
| References | <20150331145012.GA4460@arxnet.hu> |
|---|---|
| Date | 2015-03-31 09:55 -0500 |
| Subject | Re: Lockfile hanling |
| From | Skip Montanaro <skip.montanaro@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.375.1427813777.10327.python-list@python.org> (permalink) |
On Tue, Mar 31, 2015 at 9:50 AM, Ervin Hegedüs <airween@gmail.com> wrote: > After few weeks the process > reaches the number if max fd's. > > How can I prevent or avoid this issue? What's the correct way to > handle the lockfile in Python? Ervin, You need to close the files you open. I don't see that happening in your code snippet. You might consider the pylockfile module, available from PyPI: https://pypi.python.org/pypi/lockfile (I'm the original author, though others have taken it over.) Skip
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Lockfile hanling Skip Montanaro <skip.montanaro@gmail.com> - 2015-03-31 09:55 -0500
csiph-web