Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Debugging DESTROY calls in forking application

by bliako (Monsignor)
on Mar 11, 2020 at 12:56 UTC ( [id://11114125]=note: print w/replies, xml ) Need Help??


in reply to Debugging DESTROY calls in forking application

If you are sharing data between threads perhaps there is a deadlock during DESTROY? that is, both a child and a parent try to destroy the same thing but each one thinks that the other is still using it? btw, if you use threads then those print statements will not be synchronised?

  • Comment on Re: Debugging DESTROY calls in forking application

Replies are listed 'Best First'.
Re^2: Debugging DESTROY calls in forking application
by cavac (Parson) on Mar 13, 2020 at 08:49 UTC

    It's a webserver backend. It doesn't call back to the main process. And it's forking, not threading.

    perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'

      Oh sorry, I missed the fork vs thread. So no shared data.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114125]
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: (2)
As of 2024-04-24 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found