authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2026-09-14 10:28:08+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-14 22:50:33+02:00
log6e497da229b85be2d326ee29d88f0854042f9340
tree58e5b0510f0aaa0fba857cc45ed9c76db3238447
parentbafc56143298c9af7686408852928cb634c851b1

std.process: Remove broken SpawnOptions.disable_aslr option

On Darwin, ASLR for the child can only be controlled/disabled when spawning using `posix_spawn` syscall.

1 files changed, 0 insertions(+), 5 deletions(-)

lib/std/process.zig-5
......@@ -410,8 +410,6 @@ pub const SpawnOptions = struct {
410410 start_suspended: bool = false,
411411 /// Windows-only. Sets the CREATE_NO_WINDOW flag in CreateProcess.
412412 create_no_window: bool = false,
413 /// Darwin-only. Disable ASLR for the child process.
414 disable_aslr: bool = false,
415413
416414 /// Behavior of the child process's standard input, output, and error streams.
417415 pub const StdIo = union(enum) {
......@@ -489,8 +487,6 @@ pub const RunOptions = struct {
489487 progress_node: std.Progress.Node = std.Progress.Node.none,
490488 /// Windows-only. Sets the CREATE_NO_WINDOW flag in CreateProcess.
491489 create_no_window: bool = true,
492 /// Darwin-only. Disable ASLR for the child process.
493 disable_aslr: bool = false,
494490 timeout: Io.Timeout = .none,
495491};
496492
......@@ -510,7 +506,6 @@ pub fn run(gpa: Allocator, io: Io, options: RunOptions) RunError!RunResult {
510506 .expand_arg0 = options.expand_arg0,
511507 .progress_node = options.progress_node,
512508 .create_no_window = options.create_no_window,
513 .disable_aslr = options.disable_aslr,
514509
515510 .stdin = .ignore,
516511 .stdout = .pipe,