Commit 1f125c1
committed
Add command-pid member to --json-status-fd
In cases where bwrap runs its own additional PID 1 process (e.g.
--unshare-pid), child-pid is the PID of that process, not the
PID of the user-specified COMMAND.
This is inconvenient as the user might want to send e.g. SIGTERM to the
command to give it a chance to exit gracefully.
Closes #5531 parent 9286389 commit 1f125c1
2 files changed
+35
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2630 | 2630 | | |
2631 | 2631 | | |
2632 | 2632 | | |
| 2633 | + | |
2633 | 2634 | | |
2634 | 2635 | | |
2635 | 2636 | | |
| |||
2641 | 2642 | | |
2642 | 2643 | | |
2643 | 2644 | | |
| 2645 | + | |
2644 | 2646 | | |
2645 | 2647 | | |
2646 | 2648 | | |
| |||
2872 | 2874 | | |
2873 | 2875 | | |
2874 | 2876 | | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
2875 | 2885 | | |
2876 | 2886 | | |
2877 | 2887 | | |
| |||
2961 | 2971 | | |
2962 | 2972 | | |
2963 | 2973 | | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
2964 | 2984 | | |
2965 | 2985 | | |
2966 | 2986 | | |
| |||
3319 | 3339 | | |
3320 | 3340 | | |
3321 | 3341 | | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
3322 | 3349 | | |
3323 | 3350 | | |
3324 | 3351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
442 | 443 | | |
443 | 444 | | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
449 | 456 | | |
450 | 457 | | |
451 | 458 | | |
452 | 459 | | |
| 460 | + | |
453 | 461 | | |
454 | 462 | | |
455 | 463 | | |
| |||
0 commit comments