aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-02-19 20:45:04 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-02-19 20:45:04 +0000
commit2220a2b5d70faf521c0922481c061ea546d6bdc7 (patch)
treee8b5b674dd7352ae716a8ecb72b6878708274cb3 /src
parent0519a1a1f7fd9617fa1366142c56d5bcd823ce5f (diff)
downloadpostgresql-2220a2b5d70faf521c0922481c061ea546d6bdc7.tar.gz
postgresql-2220a2b5d70faf521c0922481c061ea546d6bdc7.zip
Add casts to suppress gcc warnings on Solaris (where apparently pid_t
is different from int).
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/postmaster.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index e5ce458c0d6..6fe2cdd61bb 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -37,7 +37,7 @@
*
*
* 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
*
@@ -1459,7 +1459,7 @@ pmdie(SIGNAL_ARGS)
if (ShutdownPID > 0)
{
elog(REALLYFATAL, "shutdown process %d already running",
- ShutdownPID);
+ (int) ShutdownPID);
abort();
}
@@ -1503,7 +1503,7 @@ pmdie(SIGNAL_ARGS)
if (ShutdownPID > 0)
{
elog(REALLYFATAL, "shutdown process %d already running",
- ShutdownPID);
+ (int) ShutdownPID);
abort();
}
@@ -1607,7 +1607,7 @@ reaper(SIGNAL_ARGS)
if (ShutdownPID > 0)
{
elog(STOP, "startup process %d died while shutdown process %d already running",
- pid, ShutdownPID);
+ pid, (int) ShutdownPID);
abort();
}
ShutdownPID = ShutdownDataBase();
@@ -1747,7 +1747,7 @@ CleanupProc(int pid,
if (DebugLvl)
elog(DEBUG, "CleanupProc: sending %s to process %d",
(SendStop ? "SIGSTOP" : "SIGQUIT"),
- bp->pid);
+ (int) bp->pid);
kill(bp->pid, (SendStop ? SIGSTOP : SIGQUIT));
}
}
@@ -1820,7 +1820,7 @@ SignalChildren(int signal)
{
if (DebugLvl >= 1)
elog(DEBUG, "SignalChildren: sending signal %d to process %d",
- signal, bp->pid);
+ signal, (int) bp->pid);
kill(bp->pid, signal);
}
@@ -1915,7 +1915,7 @@ BackendStartup(Port *port)
/* in parent, normal */
if (DebugLvl >= 1)
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