Commit 3f234a1
committed
When
We plan to make the implementation of `cvd_internal_start` aka
`launch_cvd` in the Android source tree invoke `cvd`. There is a problem
with this: after the first invocation of `cvd`, it will run executable
substitution in the build directory and replace the forwarding
`cvd_internal_start` with the implementation in this repository.
That means if we want the forward functionality to persist past one
invocation, we need the `cvd_internal_start` implementation here to be
forwarding as well. The forwarding is only applied when the invoking
executable is not a `cvd` executable.
This relies on the new flags `--reuse` and `--daemon=false` to be
supported, which are in other outstanding PRs. Users calling
`launch_cvd` will expect to see the behavior from these flags.
Bug: b/519304405cvd_internal_start is not invoked by cvd, forward to cvd
1 parent 10e2792 commit 3f234a1
2 files changed
Lines changed: 49 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | | - | |
22 | 23 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
209 | 248 | | |
210 | 249 | | |
| 250 | + | |
211 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
212 | 255 | | |
213 | 256 | | |
214 | 257 | | |
| |||
0 commit comments