chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fishdescriptor: WIP fishing module, before move to own module
[chiark-utils.git]
/
fishdescriptor
/
greenend
/
fishdescriptor
/
__init__.py
diff --git
a/fishdescriptor/greenend/fishdescriptor/__init__.py
b/fishdescriptor/greenend/fishdescriptor/__init__.py
index 2a80833da48861c68dee436e9ec644691a60dbbd..a363c5e5318518b2eaeefdeeecbd8396eab2b82f 100644
(file)
--- a/
fishdescriptor/greenend/fishdescriptor/__init__.py
+++ b/
fishdescriptor/greenend/fishdescriptor/__init__.py
@@
-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 '