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 {...@@ -410,8 +410,6 @@ pub const SpawnOptions = struct {
410 start_suspended: bool = false,410 start_suspended: bool = false,
411 /// Windows-only. Sets the CREATE_NO_WINDOW flag in CreateProcess.411 /// Windows-only. Sets the CREATE_NO_WINDOW flag in CreateProcess.
412 create_no_window: bool = false,412 create_no_window: bool = false,
413 /// Darwin-only. Disable ASLR for the child process.
414 disable_aslr: bool = false,
415413
416 /// Behavior of the child process's standard input, output, and error streams.414 /// Behavior of the child process's standard input, output, and error streams.
417 pub const StdIo = union(enum) {415 pub const StdIo = union(enum) {
...@@ -489,8 +487,6 @@ pub const RunOptions = struct {...@@ -489,8 +487,6 @@ pub const RunOptions = struct {
489 progress_node: std.Progress.Node = std.Progress.Node.none,487 progress_node: std.Progress.Node = std.Progress.Node.none,
490 /// Windows-only. Sets the CREATE_NO_WINDOW flag in CreateProcess.488 /// Windows-only. Sets the CREATE_NO_WINDOW flag in CreateProcess.
491 create_no_window: bool = true,489 create_no_window: bool = true,
492 /// Darwin-only. Disable ASLR for the child process.
493 disable_aslr: bool = false,
494 timeout: Io.Timeout = .none,490 timeout: Io.Timeout = .none,
495};491};
496492
...@@ -510,7 +506,6 @@ pub fn run(gpa: Allocator, io: Io, options: RunOptions) RunError!RunResult {...@@ -510,7 +506,6 @@ pub fn run(gpa: Allocator, io: Io, options: RunOptions) RunError!RunResult {
510 .expand_arg0 = options.expand_arg0,506 .expand_arg0 = options.expand_arg0,
511 .progress_node = options.progress_node,507 .progress_node = options.progress_node,
512 .create_no_window = options.create_no_window,508 .create_no_window = options.create_no_window,
513 .disable_aslr = options.disable_aslr,
514509
515 .stdin = .ignore,510 .stdin = .ignore,
516 .stdout = .pipe,511 .stdout = .pipe,