chiark / gitweb /
fishdescriptor: WIP fishing module, before move to own module
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 13 Oct 2017 15:09:54 +0000 (16:09 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 13 Oct 2017 15:09:54 +0000 (16:09 +0100)
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
fishdescriptor/greenend/fishdescriptor/__init__.py

index 2a80833..a363c5e 100644 (file)
@@ -1,2 +1,10 @@
+# python 3 only
 
-class 
+import socket
+
+def fish(pid, fds):
+    # -> list of fds in our process
+    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+
+def deliver(pid, fds, path):
+    gdb -batch -p %d -ex '