Commit 2220a2b5 authored by Tom Lane's avatar Tom Lane

Add casts to suppress gcc warnings on Solaris (where apparently pid_t

is different from int).
parent 0519a1a1
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.265 2002/02/19 19:53:35 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.266 2002/02/19 20:45:04 tgl Exp $
* *
* NOTES * NOTES
* *
...@@ -1459,7 +1459,7 @@ pmdie(SIGNAL_ARGS) ...@@ -1459,7 +1459,7 @@ pmdie(SIGNAL_ARGS)
if (ShutdownPID > 0) if (ShutdownPID > 0)
{ {
elog(REALLYFATAL, "shutdown process %d already running", elog(REALLYFATAL, "shutdown process %d already running",
ShutdownPID); (int) ShutdownPID);
abort(); abort();
} }
...@@ -1503,7 +1503,7 @@ pmdie(SIGNAL_ARGS) ...@@ -1503,7 +1503,7 @@ pmdie(SIGNAL_ARGS)
if (ShutdownPID > 0) if (ShutdownPID > 0)
{ {
elog(REALLYFATAL, "shutdown process %d already running", elog(REALLYFATAL, "shutdown process %d already running",
ShutdownPID); (int) ShutdownPID);
abort(); abort();
} }
...@@ -1607,7 +1607,7 @@ reaper(SIGNAL_ARGS) ...@@ -1607,7 +1607,7 @@ reaper(SIGNAL_ARGS)
if (ShutdownPID > 0) if (ShutdownPID > 0)
{ {
elog(STOP, "startup process %d died while shutdown process %d already running", elog(STOP, "startup process %d died while shutdown process %d already running",
pid, ShutdownPID); pid, (int) ShutdownPID);
abort(); abort();
} }
ShutdownPID = ShutdownDataBase(); ShutdownPID = ShutdownDataBase();
...@@ -1747,7 +1747,7 @@ CleanupProc(int pid, ...@@ -1747,7 +1747,7 @@ CleanupProc(int pid,
if (DebugLvl) if (DebugLvl)
elog(DEBUG, "CleanupProc: sending %s to process %d", elog(DEBUG, "CleanupProc: sending %s to process %d",
(SendStop ? "SIGSTOP" : "SIGQUIT"), (SendStop ? "SIGSTOP" : "SIGQUIT"),
bp->pid); (int) bp->pid);
kill(bp->pid, (SendStop ? SIGSTOP : SIGQUIT)); kill(bp->pid, (SendStop ? SIGSTOP : SIGQUIT));
} }
} }
...@@ -1820,7 +1820,7 @@ SignalChildren(int signal) ...@@ -1820,7 +1820,7 @@ SignalChildren(int signal)
{ {
if (DebugLvl >= 1) if (DebugLvl >= 1)
elog(DEBUG, "SignalChildren: sending signal %d to process %d", elog(DEBUG, "SignalChildren: sending signal %d to process %d",
signal, bp->pid); signal, (int) bp->pid);
kill(bp->pid, signal); kill(bp->pid, signal);
} }
...@@ -1915,7 +1915,7 @@ BackendStartup(Port *port) ...@@ -1915,7 +1915,7 @@ BackendStartup(Port *port)
/* in parent, normal */ /* in parent, normal */
if (DebugLvl >= 1) if (DebugLvl >= 1)
elog(DEBUG, "BackendStartup: forked pid=%d socket=%d", elog(DEBUG, "BackendStartup: forked pid=%d socket=%d",
pid, port->sock); (int) pid, port->sock);
/* /*
* Everything's been successful, it's safe to add this backend to our * Everything's been successful, it's safe to add this backend to our
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment