Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: TCP Client-Server: Server exits though it shouldn't

by svenXY (Deacon)
on Jan 26, 2009 at 13:59 UTC ( [id://738930]=note: print w/replies, xml ) Need Help??


in reply to TCP Client-Server: Server exits though it shouldn't

some further findings:

  • I was able to boil this down to the REAPER, using $SIG{CHLD} = 'IGNORE'; works like a charm but is not what I want
  • reaping (a.k.a. calling waitpid()) in the parent-part of the while loop also works, but will not clean up often enough
  • I also debugged this with -d now and it seems that the REAPER-sub throws the server out of the while loop
  • NOW: this is all pretty much what is in the docs, camelbook etc., but does not seem to work... --- no ideas out there???
    Regards,
    svenXY
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: note [id://738930]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others having a coffee break in the Monastery: (7)
    As of 2024-04-24 08:45 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found