aboutgitcodelistschat:MatrixIRC
path: root/demo/socket.hjson
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-06-19 14:28:45 +0200
committerAlice Frosi <afrosi@redhat.com>2023-06-28 14:21:26 +0200
commit4a1430ac3c60b5ff1c00bf98c004351c67c26c23 (patch)
tree648273310014d06e5e42f6b850866afbae653057 /demo/socket.hjson
parent64d64ab33a7cb073492013258ed3e465d3358cbd (diff)
downloadseitan-4a1430ac3c60b5ff1c00bf98c004351c67c26c23.tar
seitan-4a1430ac3c60b5ff1c00bf98c004351c67c26c23.tar.gz
seitan-4a1430ac3c60b5ff1c00bf98c004351c67c26c23.tar.bz2
seitan-4a1430ac3c60b5ff1c00bf98c004351c67c26c23.tar.lz
seitan-4a1430ac3c60b5ff1c00bf98c004351c67c26c23.tar.xz
seitan-4a1430ac3c60b5ff1c00bf98c004351c67c26c23.tar.zst
seitan-4a1430ac3c60b5ff1c00bf98c004351c67c26c23.zip
Update demos
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 }
}
]