-
For each SSH session one file descriptor is leaked:
# python
Python 2.2.3 (#1, Jun 12 2003, 09:31:58)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyssh
>>> s=pyssh.Ssh()
--- switching to terminal 2
# ps -ef | grep python
root 12737 12730 0 10:59 pts/2 00:00:08 python...
2007-08-02 15:30:01 UTC by divvy
-
File Added: pyssh0.3-sighandler_bug.diff.
2007-01-24 16:19:54 UTC by norbert_b
-
If you create more than one instances of pyssh,Ssh in the same process, then the process hangs when you close() any of them.
The problem is that each instance registers a signal handler to handle SIGCHLD, so each of them sees the signal, and each of them calls a blocking os.waitpid() on the pid its own SSH process. When the first SIGCHLD arrives, all the instances call a blocking os.waitpid(),
2007-01-24 16:18:11 UTC by norbert_b
-
Logged In: YES
user_id=705317
Sorry, didn't log in first. I submitted this patch.
2006-09-22 16:56:04 UTC by damonkohler
-
Basically, fssa.py fails occassionaly when it tries to
stat things that it shouldn't. The following patch is a
fix.
13a14,15
> import glob
>
31,36c35,39
< for filename in os.listdir('/tmp'):
< file_stat = os.stat("/tmp/%s" % (filename))
< if file_stat[stat.ST_UID] == os.getuid() \
< and stat.S_ISDIR(file_stat[stat.ST_MODE]) \
2006-09-22 16:52:14 UTC by nobody
-
Changes: Force TERM=dumb to eliminate ANSI control characters from output. Added sshping function for a quick connectivity test. Added an SSHTunnel class to control a tunnel on an arbitrary local port.
2006-04-12 22:54:26 UTC by mwa
-
mwa committed patchset 33 of module pyssh to the PySSH CVS repository, changing 1 files.
2006-04-12 22:43:09 UTC by mwa
-
mwa committed patchset 32 of module pyssh to the PySSH CVS repository, changing 1 files.
2004-10-19 17:56:38 UTC by mwa
-
mwa committed patchset 31 of module pyssh to the PySSH CVS repository, changing 1 files.
2004-10-19 17:46:19 UTC by mwa
-
mwa committed patchset 30 of module pyssh to the PySSH CVS repository, changing 1 files.
2004-10-15 17:02:27 UTC by mwa