summaryrefslogtreecommitdiff
path: root/core/exec.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 10:44:54 -0300
committerGabriel Schneider <[email protected]>2026-11-26 10:44:54 -0300
commit8723462d8e02bc9d78b5004de38b910e83540575 (patch)
treef264bf364d41f3b334416618e973ec12cba0ddc9 /core/exec.zig
parent7911c53d5f08c7d8df3eb59061841daddb1d0e83 (diff)
parentf11b123a8f4c38b6582c03d2acf84143ed1e7fd3 (diff)
downloadpardes-8723462d8e02bc9d78b5004de38b910e83540575.tar.gz
pardes-8723462d8e02bc9d78b5004de38b910e83540575.zip
merge: M2's fix (dump.load resolves the chrome) + FP (PDF preview leaks, the spawn stop, PDF hits ABI 3.4)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/exec.zig')
-rw-r--r--core/exec.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/exec.zig b/core/exec.zig
index 44cfea64..47fea012 100644
--- a/core/exec.zig
+++ b/core/exec.zig
@@ -751,6 +751,10 @@ pub fn runCommand(p: *Pardes, from: usize, line: []const u8) ?usize {
if (other.command != null and other.command_done and !other.command_pty and std.mem.eql(u8, other.cwdSlice(), dir) and !leased(p, other.serial)) break i;
} else null;
if (reuse) |id| {
+ // A process started and its emulator written, as a new command
+ // pane's (panes.newCommand): the session's, which a speculation
+ // waits for, nothing of the pane changed first.
+ if (p.tape.authorityOnly("run a command")) return null;
const pane = p.panes[id].?;
const owned = p.gpa.dupe(u8, line) catch |err| {
p.reportError(.at(from), "exec", err);