Reset SIGCHLD in standalone backends too Commit 2e2751e6976 moved resetting SIGCHLD from PostgresMain() to InitPostmasterChild(). But the reset in PostgresMain() also ran in single-user mode, which doesn't call InitPostmasterChild(). If a standalone backend was started with SIGCHLD ignored, children are now reaped automatically, and e.g. COPY TO PROGRAM fails with "could not close pipe to external command: No child processes".
To fix, reset it in InitStandaloneProcess() as well. Author: Zsolt Parragi <[email protected]> Discussion: https://www.postgresql.org/message-id/CAN4CZFOHfK1dpJijJwH4j8yMEHS5xier=9uahb2bu_vwz9x...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b59ec01d944d5e6f054824ca19c116bf995d484f Modified Files -------------- src/backend/utils/init/miscinit.c | 2 ++ 1 file changed, 2 insertions(+)
