in reply to Net::OpenSSH premature session termination
Currently the module already has logic to support the case where the process is forked and the destructor is called from the child process so it shouldn't be too difficult to extend it to support the threads case as long as there is a method to detect it.
So, is there some easy way to detect when an object has been cloned in a new thread?
As a workaround, in the meantime, call the master_exited method for all Net::OpenSSH objects from every new thread.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::OpenSSH premature session termination
by troy99 (Novice) on Dec 07, 2011 at 13:55 UTC | |
by salva (Canon) on Dec 07, 2011 at 14:03 UTC | |
by troy99 (Novice) on Dec 07, 2011 at 14:09 UTC | |
by salva (Canon) on Dec 07, 2011 at 14:49 UTC | |
by troy99 (Novice) on Dec 07, 2011 at 15:29 UTC | |
|