aboutgitcodelistschat:MatrixIRC
path: root/demo/socket.hjson
diff options
context:
space:
mode:
Diffstat (limited to 'demo/socket.hjson')
-rw-r--r--demo/socket.hjson11
1 files changed, 7 insertions, 4 deletions
diff --git a/demo/socket.hjson b/demo/socket.hjson
index d9a3345..c5ddfdb 100644
--- a/demo/socket.hjson
+++ b/demo/socket.hjson
@@ -1,11 +1,14 @@
[
{
"match": [
- { "socket": { "family": "unix", "type": "stream", "flags": "cloexec", "protocol": 0 } }
+ { "socket": { "family": "unix" } }
],
- "call": [
- { "socket": { "family": "unix", "type": "stream", "flags": [ "cloexec", "nonblock" ], "protocol": 0 }, "ret": "new_fd" }
+ "return": {"continue": true }
+ },
+ {
+ "match": [
+ { "socket": {} }
],
- "fd": { "src": { "tag": "new_fd" }, "close_on_exec": false, "return": true }
+ "return": {"error": -1, "value": 0 }
}
]