esnet / netshell

Kernel and companion software that support ENOS applications (NOT ACTIVELY MAINTAINED)
Other
6 stars 1 forks source link

Cannot have more than one python session are the time #11

Closed lomaxfrog closed 8 years ago

lomaxfrog commented 8 years ago

How to reproduce:

Start two ssh sessions onto netshell. Hit return on both to verify that everything is ok. On the first ssh session, start python. Again, hit return on both sessions to verify is ok. Next, start python on the second ssh session as well. Hit return on that session to verify is ok. But, going back onto the first ssh session, the connection is dead.

lomaxfrog commented 8 years ago

Problem was that the same PySystemState (i.e. the "sys" implementation) was shared among the python sessions. Create a new one for each of them now. This issue is fixed.