| ... | ... | @@ -285,6 +285,13 @@ export function wrapCommandForLinuxCgroup( |
| 285 | 285 | '[ "$actual" = "$expected" ] || exit 126', |
| 286 | 286 | "unset ELECTRON_RUN_AS_NODE T3_ACP_CGROUP_WRAPPER", |
| 287 | 287 | "trap 'exit 125' 0", |
| 288 | // The trap alone does not cover a failed `exec`: bash — which is |
| 289 | // /bin/sh on Arch derivatives — exits 127 without running the EXIT |
| 290 | // trap, so a missing agent binary reported "killed by the wrapper" |
| 291 | // instead of "never launched". The caller always hands us an absolute |
| 292 | // target, so test it as an executable file rather than asking the |
| 293 | // shell to resolve it. |
| 294 | '[ -f "$1" ] && [ -x "$1" ] || exit 125', |
| 288 | 295 | 'exec "$@"', |
| 289 | 296 | ].join("\n"), |
| 290 | 297 | "t3-acp-cgroup-wrapper", |