diff options
author | David Timber <mieabby@gmail.com> | 2021-09-11 11:20:15 +0800 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-09-11 11:20:15 +0800 |
commit | 870eafdd7874faf096f7afbc5e016a166144f356 (patch) | |
tree | 50143876db852b0dfdb4e570ceeb08560955ee90 /doc/puml/exec-seq.puml | |
parent | eb56a23613638ca705f5be707cacc1b0989a2a76 (diff) |
The Heartbeat Protocol documentation progress
Diffstat (limited to 'doc/puml/exec-seq.puml')
-rw-r--r-- | doc/puml/exec-seq.puml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/puml/exec-seq.puml b/doc/puml/exec-seq.puml new file mode 100644 index 0000000..cffc5b0 --- /dev/null +++ b/doc/puml/exec-seq.puml @@ -0,0 +1,37 @@ +@startuml exec-seq +"A" -> "S": +RUN_CMD +"A" -> "S": Command Frame +Create P +"S" -> "P": fork(), exec() + +"A" -> "S": +STDIO +"A" -> "S": STDIO Frame +"A" -> "S": STDIO Data + +"S" -> "P": STDIO Data +"P" -> "S": STDIO Data + +"S" --> "A": STDIO +"S" --> "A": STDIO Frame +"S" --> "A": STDIO Data + +Note across: Repeat ... + +"A" -> "S": +STDIO +"A" -> "S": STDIO Frame len=0, fin +"S" -> "P": STDIN EOF + +"P" -> "S": STDOUT EOF +"S" --> "A": STDIO +"S" --> "A": STDIO Frame len=0, fin + +"P" -> "S": STDERR EOF +"S" --> "A": STDIO +"S" --> "A": STDIO Frame len=0, err, fin + +"P" -> "P": exit() +"S" <-> "P" !!: waitpid() +Note over "P": Process reaped +"S" --> "A": Status +"S" --> "A": Status Frame +@enduml |