|
4 | 4 | *
|
5 | 5 | * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
6 | 6 | *
|
7 |
| - * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.9 2004/06/1016:35:17 momjian Exp $ |
| 7 | + * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.10 2004/06/1017:26:14 momjian Exp $ |
8 | 8 | *
|
9 | 9 | *-------------------------------------------------------------------------
|
10 | 10 | */
|
@@ -222,9 +222,13 @@ start_postmaster(void)
|
222 | 222 | */
|
223 | 223 | charcmd[MAXPGPATH];
|
224 | 224 |
|
225 |
| -/* Does '&' work on Win32? */ |
226 | 225 | if (log_file!=NULL)
|
| 226 | +/* Win32 needs START rather than "&" */ |
| 227 | +#ifndefWIN32 |
227 | 228 | snprintf(cmd,MAXPGPATH,"%s\"%s\" %s < %s >> \"%s\" 2>&1 &%s",
|
| 229 | +#else |
| 230 | +snprintf(cmd,MAXPGPATH,"START %s\"%s\" %s < %s >> \"%s\" 2>&1%s", |
| 231 | +#endif |
228 | 232 | SYSTEMQUOTE,postgres_path,post_opts,DEVNULL,log_file,
|
229 | 233 | SYSTEMQUOTE);
|
230 | 234 | else
|
|