diff --git a/changelog/std.process.Config.preExecDelegate.dd b/changelog/std.process.Config.preExecDelegate.dd deleted file mode 100644 index 393d26cf0b9..00000000000 --- a/changelog/std.process.Config.preExecDelegate.dd +++ /dev/null @@ -1,25 +0,0 @@ -Add `std.process.Config.preExecDelegate` - -$(LINK2 $(ROOT_DIR)phobos/std_process.html#.Config.preExecDelegate, `std.process.Config.preExecDelegate`) -is just like -$(LINK2 $(ROOT_DIR)phobos/std_process.html#.Config.preExecFunction, `std.process.Config.preExecFunction`), -but can capture an environment, for example: - -------- -import core.sys.linux.sys.prctl : PR_SET_PDEATHSIG, prctl; -import std.process : Config, execute; - -void runProgram(int pdeathsig) -{ - execute( - ["program"], - config: Config( - preExecDelegate: () @trusted => - prctl(PR_SET_PDEATHSIG, pdeathsig, 0, 0, 0) != -1, - ), - ); -} -------- - -`preExecFunction` is retained for backwards compatibility. If both -`preExecFunction` and `preExecDelegate` are given, both are called.