Commit f83aa34
committed
run_cvd exits immediately on SIGINT
When running in daemon mode run_cvd doesn't receive the interrupt. It
only exited after the boot completes, it tries to write the exit code to
the foreground launcher and receives a SIGPIPE. By checking the pipe to
the foreground launcher on the boot state machine loop it can notice the
foreground launcher terminating early and terminate itself.
Bug: b/4677942631 parent c30be71 commit f83aa34
File tree
1 file changed
+16
-0
lines changed- base/cvd/cuttlefish/host/commands/run_cvd
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
423 | 430 | | |
424 | 431 | | |
425 | 432 | | |
| |||
437 | 444 | | |
438 | 445 | | |
439 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
440 | 456 | | |
441 | 457 | | |
442 | 458 | | |
| |||
0 commit comments