Commit 6a97da3
daemon: use an argv_array to exec children
Our struct child_process already has its own argv_array.
Let's use that to avoid having to format options into
separate buffers.
Note that we'll need to declare the child process outside of
the run_service_command() helper to do this. But that opens
up a further simplification, which is that the helper can
append to our argument list, saving each caller from
specifying "." manually.
Signed-off-by: Jeff King <peff@peff.net>1 parent 07af889 commit 6a97da3
1 file changed
Lines changed: 17 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
453 | 453 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
460 | 458 | | |
461 | 459 | | |
462 | 460 | | |
463 | 461 | | |
464 | 462 | | |
465 | | - | |
| 463 | + | |
466 | 464 | | |
467 | | - | |
| 465 | + | |
468 | 466 | | |
469 | 467 | | |
470 | 468 | | |
471 | 469 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
480 | 474 | | |
481 | 475 | | |
482 | 476 | | |
483 | 477 | | |
484 | | - | |
485 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
486 | 481 | | |
487 | 482 | | |
488 | 483 | | |
489 | 484 | | |
490 | | - | |
491 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
492 | 488 | | |
493 | 489 | | |
494 | 490 | | |
| |||
0 commit comments