Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.055 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'case.': 0.05; 'executed': 0.07; 'descriptors,': 0.16; 'creates': 0.18; 'runs': 0.22; 'to:2**1': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'wrote': 0.26; 'code': 0.31; 'file': 0.32; 'to:addr:python-list': 0.33; 'weeks': 0.33; 'loss': 0.34; 'being': 0.37; 'ones': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'think': 0.40; 'received:204': 0.72; 'drops': 0.91 Date: Tue, 24 Jul 2012 14:31:13 +0200 From: Laszlo Nagy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: =?UTF-8?B?RXJ2aW4gSGVnZWTDvHM=?= , python-list@python.org Subject: Re: Daemon loses __file__ reference after a while. References: <20120724122429.GA4955@arxnet.hu> In-Reply-To: <20120724122429.GA4955@arxnet.hu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343133079 news.xs4all.nl 6892 [2001:888:2000:d::a6]:56995 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25984 > If you use fork(), it drops all file descriptors, and creates new > ones - may be then loss the __file__...? > I don't think this is the case. He wrote that the process runs for weeks without problems, and code using __file__ is being executed all the time.