mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 14:51:52 +00:00
Fix: posix_spawnattr_destroy
This commit is contained in:
@@ -51,12 +51,7 @@ pub const PosixSpawn = struct {
|
||||
}
|
||||
|
||||
pub fn deinit(self: *Attr) void {
|
||||
if (comptime bun.Environment.isMac) {
|
||||
// https://github.com/ziglang/zig/issues/12964
|
||||
system.posix_spawnattr_destroy(&self.attr);
|
||||
} else {
|
||||
_ = system.posix_spawnattr_destroy(&self.attr);
|
||||
}
|
||||
_ = system.posix_spawnattr_destroy(&self.attr);
|
||||
|
||||
self.* = undefined;
|
||||
}
|
||||
@@ -93,12 +88,7 @@ pub const PosixSpawn = struct {
|
||||
}
|
||||
|
||||
pub fn deinit(self: *Actions) void {
|
||||
if (comptime bun.Environment.isMac) {
|
||||
// https://github.com/ziglang/zig/issues/12964
|
||||
system.posix_spawn_file_actions_destroy(&self.actions);
|
||||
} else {
|
||||
_ = system.posix_spawn_file_actions_destroy(&self.actions);
|
||||
}
|
||||
_ = system.posix_spawn_file_actions_destroy(&self.actions);
|
||||
|
||||
self.* = undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user