forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit714bfb7
committed
pg_ctl: Disable autoruns for cmd.exe on Windows
On Windows, cmd.exe is used to launch the postmaster process to ease itsredirection setup. However, cmd.exe may execute other programs atstartup due to autorun configurations, which could influence thepostmaster startup. This patch adds /D flag to the launcher cmd.execommand line to disable autorun settings written in the registry.This was originally applied on HEAD as of9886744 without abackpatch, but the patch has survived CI and buildfarm cycles. I havechecked that cmd /d exists down to Windows XP, which should make thischange work correctly in the oldest branches still supported.Reported-by: Hayato KurodaAuthor: Kyotaro HoriguchiReviewed-by: Robert Haas, Michael PaquierDiscussion:https://postgr.es/m/20230922.161551.320043332510268554.horikyota.ntt@gmail.comBackpatch-through: 121 parent80bece3 commit714bfb7
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
553 | 553 |
| |
554 | 554 |
| |
555 | 555 |
| |
556 |
| - | |
| 556 | + | |
557 | 557 |
| |
558 | 558 |
| |
559 | 559 |
| |
560 |
| - | |
| 560 | + | |
561 | 561 |
| |
562 | 562 |
| |
563 | 563 |
| |
|
0 commit comments
Comments
(0)