Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
9a31c9b7
Commit
9a31c9b7
authored
Oct 04, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress getppid test on WIN32, per Dave Page.
parent
4171bb86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/backend/utils/init/miscinit.c
src/backend/utils/init/miscinit.c
+9
-2
No files found.
src/backend/utils/init/miscinit.c
View file @
9a31c9b7
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.13
3 2004/10/01 18:30:25
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.13
4 2004/10/04 14:55:17
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -538,10 +538,17 @@ CreateLockFile(const char *filename, bool amPostmaster,
* then all but the immediate parent shell will be root-owned processes
* and so the kill test will fail with EPERM.
*
* Windows hasn't got getppid(), but doesn't need it since it's not
* using real kill() either...
*
* Normally kill() will fail with ESRCH if the given PID doesn't
* exist. BeOS returns EINVAL for some silly reason, however.
*/
if
(
other_pid
!=
my_pid
&&
other_pid
!=
getppid
())
if
(
other_pid
!=
my_pid
#ifndef WIN32
&&
other_pid
!=
getppid
()
#endif
)
{
if
(
kill
(
other_pid
,
0
)
==
0
||
(
errno
!=
ESRCH
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment