From 75db5a665fac305ac0170f49f39c1b01d026e8d3 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Thu, 10 Jun 2004 17:45:09 +0000
Subject: [PATCH] Add START background code for another code path, per Andrew
 Dunstan.

---
 src/bin/pg_ctl/pg_ctl.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index e0962dfb8be..dbba0ac14e2 100644
--- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c
@@ -4,7 +4,7 @@
  *
  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.10 2004/06/10 17:26:14 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.11 2004/06/10 17:45:09 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -232,7 +232,11 @@ start_postmaster(void)
 				 SYSTEMQUOTE, postgres_path, post_opts, DEVNULL, log_file,
 				 SYSTEMQUOTE);
 	else
+#ifndef WIN32
 		snprintf(cmd, MAXPGPATH, "%s\"%s\" %s < \"%s\" 2>&1 &%s",
+#else
+		snprintf(cmd, MAXPGPATH, "START %s\"%s\" %s < \"%s\" 2>&1%s",
+#endif
 				 SYSTEMQUOTE, postgres_path, post_opts, DEVNULL, SYSTEMQUOTE);
 	return system(cmd);
 }
-- 
GitLab