*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.398 2004/05/28 05:12:58 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.399 2004/05/28 15:14:03 tgl Exp $
*
* NOTES
*
ereport(WARNING,
(errmsg_internal("unable to find backend entry with pid %d",
- pid)));
+ (int) pid)));
}
#endif /* EXEC_BACKEND */
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
- char *p;
int i;
int j;
char cmdLine[MAXPGPATH * 2];
HANDLE waiterThread;
/* Format the cmd line */
- cmdline[sizeof(cmdLine)-1] = '\0';
- cmdline[sizeof(cmdLine)-2] = '\0';
+ cmdLine[sizeof(cmdLine)-1] = '\0';
+ cmdLine[sizeof(cmdLine)-2] = '\0';
snprintf(cmdLine, sizeof(cmdLine)-1, "\"%s\"", path);
i = 0;
while (argv[++i] != NULL)
j = strlen(cmdLine);
snprintf(cmdLine+j, sizeof(cmdLine)-1-j, " \"%s\"", argv[i]);
}
- if (cmdline[sizeof(cmdLine)-2] != '\0')
+ if (cmdLine[sizeof(cmdLine)-2] != '\0')
{
elog(LOG, "subprocess command line too long");
return -1;