aboutsummaryrefslogtreecommitdiff
path: root/doc/puml/execbin-seq.puml
blob: dd80607363a20d1e669233cf5b48e656d879f7c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@startuml execbin-seq
"A"  -> "S": +RUN_BIN
"A"  -> "S": Binary Meta Frame
"S"  -> "S": open() tmpfile
"A"  -> "S": +STDIO
"A"  -> "S": STDIO Frame
"A"  -> "S": Binary Data
"S"  -> "S": write()
"A"  -> "S": +STDIO
"A"  -> "S": STDIO Frame
"A"  -> "S": Binary Data
"S"  -> "S": write()
Note across: Repeat ...
"A"  -> "S": +STDIO
"A"  -> "S": STDIO Frame, fin
"S"  -> "S": close()

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