Repository navigation
Commit 3872aa4
authored
Take up openkal 0.11's unit: a handle the caller holds, not a flag (#23)
* 0.10.0 --- one spawn, a working directory, and a job that terminate reaches
⭐ THE SAVING IS NOT ONLY IN THE HEADER. This file held THREE bodies of sixty
lines that differed by four: every fix to the shared part --- the exec-report pipe
among them --- had to be made three times, or be made once and be wrong twice.
They are one function now, and the modifiers are positions in `kal_spawn'.
Two of those positions are new work rather than rearrangement:
`work' --- the directory the started program runs in, an `fchdir' in the duplicate
before the replacement. `execveat' takes `base' as a dirfd, but that RESOLVES the
name, and resolving a name is not entering a directory --- which is what the
comment here used to claim and the code never did. 1 parent 034e87b commit 3872aa4
5 files changed
Lines changed: 276 additions & 213 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
103 | 135 | | |
104 | 136 | | |
105 | 137 | | |
| |||
0 commit comments