From 1aad510fb3cbf59e095fd12aa1132268a59cb15a Mon Sep 17 00:00:00 2001 From: Hiroki Noda Date: Thu, 26 Aug 2021 21:46:07 +0900 Subject: [PATCH] Note that all of the code in preExecFunction must be async-signal-safe --- std/process.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/std/process.d b/std/process.d index 68cc65cfa..43fb53ffc 100644 --- a/std/process.d +++ b/std/process.d @@ -2159,6 +2159,8 @@ struct Config /** A function that is called before `exec` in $(LREF spawnProcess). It returns `true` if succeeded and otherwise returns `false`. + Please note that the code in this function must only use + async-signal-safe functions. On Windows, this member is not available. */ bool function() nothrow @nogc @safe preExecFunction;