704a0874
fix: the prompt daemons are declared where they are started
a73x 2026-08-26 19:29
Commit message
test/e2e_12_panes.sh
| Old | New | ||
|---|---|---|---|
| @@ -23,10 +23,6 @@ SOCK60="${TMPDIR:-/tmp}/muxd-e2e-lpheal-$$.sock" | |||
| 23 | defer_sock "$SOCK60" | 23 | defer_sock "$SOCK60" |
| 24 | SOCK61="${TMPDIR:-/tmp}/muxd-e2e-lpdegrade-$$.sock" | 24 | SOCK61="${TMPDIR:-/tmp}/muxd-e2e-lpdegrade-$$.sock" |
| 25 | defer_sock "$SOCK61" | 25 | defer_sock "$SOCK61" |
| 26 | SOCK62="${TMPDIR:-/tmp}/muxd-e2e-promptA-$$.sock" | ||
| 27 | defer_sock "$SOCK62" | ||
| 28 | SOCK63="${TMPDIR:-/tmp}/muxd-e2e-promptB-$$.sock" | ||
| 29 | defer_sock "$SOCK63" | ||
| 30 | 26 | ||
| 31 | # --- the cursor rests in the focused tile, whoever painted last ---------- | 27 | # --- the cursor rests in the focused tile, whoever painted last ---------- |
| 32 | # The cursor-ownership leg: a daemon of its own, for the grid-size reason | 28 | # The cursor-ownership leg: a daemon of its own, for the grid-size reason |
test/e2e_13_birth.sh
| Old | New | ||
|---|---|---|---|
| @@ -72,6 +72,13 @@ SPINLOG="$SPDIR/dials" | |||
| 72 | PRSTATE="${TMPDIR:-/tmp}/mux-e2e-prompt-state-$$" | 72 | PRSTATE="${TMPDIR:-/tmp}/mux-e2e-prompt-state-$$" |
| 73 | defer_rm "$PRSTATE" | 73 | defer_rm "$PRSTATE" |
| 74 | PRWALL="$PRSTATE/mux/wall" | 74 | PRWALL="$PRSTATE/mux/wall" |
| 75 | # Two daemons, because the assertion is that the birth landed on the one | ||
| 76 | # the spelling NAMED: one socket could only ever say a session was created, | ||
| 77 | # not which daemon created it. | ||
| 78 | SOCK62="${TMPDIR:-/tmp}/muxd-e2e-promptA-$$.sock" | ||
| 79 | defer_sock "$SOCK62" | ||
| 80 | SOCK63="${TMPDIR:-/tmp}/muxd-e2e-promptB-$$.sock" | ||
| 81 | defer_sock "$SOCK63" | ||
| 75 | start_daemon "$SOCK62" "$OUT.pra.d" "prompt daemon A never bound" --shell /bin/sh | 82 | start_daemon "$SOCK62" "$OUT.pra.d" "prompt daemon A never bound" --shell /bin/sh |
| 76 | D63PID=$DPID | 83 | D63PID=$DPID |
| 77 | start_daemon "$SOCK63" "$OUT.prb.d" "prompt daemon B never bound" --shell /bin/sh | 84 | start_daemon "$SOCK63" "$OUT.prb.d" "prompt daemon B never bound" --shell /bin/sh |