Message197

Author lekma
Recipients reinhard
Date 2006-09-22.14:41:07
Content
pb descr:
ssh to your server
start appserver with smthing like /usr/bin/python /usr/bin/gnue-appserver
--silent --debug-level 0-2 --debug-file /var/log/gnue/appserver.log --pidfile
/var/run/gnue/appserver.pid
and try to exit your ssh session,  it hangs.
attempt to explain:
according to http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16 when trying
to become a daemon a process should close all its open file descriptors, this
would fix the hang (no more open fds attached to the process that lauched
appserver). Unfortunately, doing this in GServerApp.daemonize() closes the
debug-file, opened previously by GBaseApp.__init__(), and you lose the debug
facility.
History
Date User Action Args
2006-09-22 14:41:07lekmasetmessageid: <1158936067.63.0.709529005545.issue122@gnuenterprise.org>
2006-09-22 14:41:07lekmasetrecipients: + reinhard
2006-09-22 14:41:07lekmalinkissue122 messages
2006-09-22 14:41:07lekmacreate