aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--demo/connect.hjson10
-rw-r--r--demo/mknod.hjson2
2 files changed, 9 insertions, 3 deletions
diff --git a/demo/connect.hjson b/demo/connect.hjson
index 3bf0747..de4c119 100644
--- a/demo/connect.hjson
+++ b/demo/connect.hjson
@@ -1,7 +1,7 @@
[
- { /* connect to another path (/var/run/pr-helper.sock -> /tmp/demo.sock) */
+ { /* connect to another path (/cool.sock -> /tmp/demo.sock) */
"match": [
- { "connect": { "addr": { "family": "unix", "path": "/var/run/pr-helper.sock" }, "fd": { "tag": "fd" } } }
+ { "connect": { "addr": { "family": "unix", "path": "/cool.sock" }, "fd": { "tag": "fd" } } }
],
"call": [
{ "socket": { "family": "unix", "type": "stream", "flags": 0, "protocol": 0 }, "ret": "new_fd" },
@@ -21,5 +21,11 @@
{ "connect": { "addr": { "family": "unix", "path": "/error.sock" } } }
],
"return": { "value": 0, "error": -1 }
+ },
+ { /* Continue all the other connect syscall */
+ "match": [
+ { "connect": {} }
+ ],
+ "return": { "continue": true }
}
]
diff --git a/demo/mknod.hjson b/demo/mknod.hjson
index 7055aee..40b5b8b 100644
--- a/demo/mknod.hjson
+++ b/demo/mknod.hjson
@@ -28,6 +28,6 @@
},
"context": { "mnt": "caller" }
},
- "return": { "value": 0 }
+ "return": { "value": 0, "error": 0 }
}
]