Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2220a2b

Browse files
committed
Add casts to suppress gcc warnings on Solaris (where apparently pid_t
is different from int).
1 parent0519a1a commit2220a2b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.265 2002/02/1919:53:35 tgl Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.266 2002/02/1920:45:04 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -1459,7 +1459,7 @@ pmdie(SIGNAL_ARGS)
14591459
if (ShutdownPID>0)
14601460
{
14611461
elog(REALLYFATAL,"shutdown process %d already running",
1462-
ShutdownPID);
1462+
(int)ShutdownPID);
14631463
abort();
14641464
}
14651465

@@ -1503,7 +1503,7 @@ pmdie(SIGNAL_ARGS)
15031503
if (ShutdownPID>0)
15041504
{
15051505
elog(REALLYFATAL,"shutdown process %d already running",
1506-
ShutdownPID);
1506+
(int)ShutdownPID);
15071507
abort();
15081508
}
15091509

@@ -1607,7 +1607,7 @@ reaper(SIGNAL_ARGS)
16071607
if (ShutdownPID>0)
16081608
{
16091609
elog(STOP,"startup process %d died while shutdown process %d already running",
1610-
pid,ShutdownPID);
1610+
pid,(int)ShutdownPID);
16111611
abort();
16121612
}
16131613
ShutdownPID=ShutdownDataBase();
@@ -1747,7 +1747,7 @@ CleanupProc(int pid,
17471747
if (DebugLvl)
17481748
elog(DEBUG,"CleanupProc: sending %s to process %d",
17491749
(SendStop ?"SIGSTOP" :"SIGQUIT"),
1750-
bp->pid);
1750+
(int)bp->pid);
17511751
kill(bp->pid, (SendStop ?SIGSTOP :SIGQUIT));
17521752
}
17531753
}
@@ -1820,7 +1820,7 @@ SignalChildren(int signal)
18201820
{
18211821
if (DebugLvl >=1)
18221822
elog(DEBUG,"SignalChildren: sending signal %d to process %d",
1823-
signal,bp->pid);
1823+
signal,(int)bp->pid);
18241824

18251825
kill(bp->pid,signal);
18261826
}
@@ -1915,7 +1915,7 @@ BackendStartup(Port *port)
19151915
/* in parent, normal */
19161916
if (DebugLvl >=1)
19171917
elog(DEBUG,"BackendStartup: forked pid=%d socket=%d",
1918-
pid,port->sock);
1918+
(int)pid,port->sock);
19191919

19201920
/*
19211921
* Everything's been successful, it's safe to add this backend to our

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp