Is there a way to stop the thread->join from closing all spawn_ids?
Scenario:
I am using Perl Expect to connect to Console of
TestSetup: I have 3 console connections in all.
In additioan to the above, I have SSH connection to
the test setup.
Iam initializing a thread to which I provide SSH
connection id (spawn_id) as input. Sub routine
attached to this thread is performing search function.
Sub routine returns 0 if search fails and 1 if
successful.
in the main program after calling the thread i wait
for the thread to join.
As soon as i calll join function, spawn_id of ssh
connection is closed.
Issue: Even connections to console (3 connections I
made are getting closed. Note that i have only passed
ssh connection id to the thread.