Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hello Monks, I am hopping someone else has run into this, or can shed some light on what is going on. I have an app server that runs as a daemon process. I used the Dameon.pm from Lincoln Stein's Book "Network Programming with Perl". I made some minor modifications and was up and running. This app server was running on numerous servers without any problem, perl-5.6.1. When I started upgrading the servers to 5.8.1 the server would start up handle one request and exit. Because of a lack of time, I started the servers using 5.6.1 version of Perl. Well now I am trying to figure out why the server won't stay running under Perl 5.8.? . I even tried running under version 5.8.4 and still no luck. So something was fixed or changed in the 5.8 versions of Perl, I just can't figure out what it is. I will probably convert to POE, or a least try it, sometime, but right now I need to figure out what is going on here.
This basically the app server code,
I am using HTTP::Daemon to listen for posts on a port and I use the Daemon.pm launch the children, initialize, ...etc. I was debugging the server so I commented out the become_daemon() sub and ran in the debugger. Of course the server stayed running, not exiting after one request. As soon as I put the become_daemon() back into the code and start the server, it quits after handling one request. Here is the become_daemon() sub from Lincoln's book,
Any help would be much appreciated! In reply to Daemon module stop working 5.8.? by sth
|
|