From 4a1430ac3c60b5ff1c00bf98c004351c67c26c23 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Mon, 19 Jun 2023 14:28:45 +0200 Subject: Update demos --- demo/socket.hjson | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'demo/socket.hjson') 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 } } ] -- cgit v1.2.3