Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^7: Fork and creating a thread exits the process

by pryrt (Abbot)
on Jul 31, 2020 at 14:56 UTC ( [id://11120149]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Fork and creating a thread exits the process
in thread Fork and creating a thread exits the process

This test works on 32bit Strawberry.

But does it work for you on 64bit? I ask this because you said,

tested now with Strawberry 64bit and I wasn't able to get it work. But I tried again starting with a fresh 32bit version at that still does work.

With my code, I was showing a fork-based program that was known-working for me in 64bit, and wanted you to see whether or not my code worked on your 64bit Strawberry.

32bit Strawberry ... seems to be the only Perl that it works on

I do not see that limitation. The code I posted works for me on both 32bit and 64bit.

Replies are listed 'Best First'.
Re^8: Fork and creating a thread exits the process
by fluks (Novice) on Aug 01, 2020 at 10:37 UTC

    Sorry for the late reply.

    The test script did work on a 64bit Strawberry too.

      Great. Now you need to figure out why mine works but yours doesn't. Either start with yours and slowly take things out to simplify toward mine, until it starts working; or start with mine and slowly add things to make it more like yours until it stops working.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-16 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found