chiark / gitweb /
fishdescriptor: WIP fishing module, before move to own module
[chiark-utils.git] / fishdescriptor / greenend / fishdescriptor / __init__.py
index 2a80833da48861c68dee436e9ec644691a60dbbd..a363c5e5318518b2eaeefdeeecbd8396eab2b82f 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 '