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
449593a9
Commit
449593a9
authored
Nov 08, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix process-status handling for OS X 10.3.
parent
b657ded2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/backend/utils/misc/ps_status.c
src/backend/utils/misc/ps_status.c
+10
-4
No files found.
src/backend/utils/misc/ps_status.c
View file @
449593a9
...
...
@@ -5,7 +5,7 @@
* to contain some useful information. Mechanism differs wildly across
* platforms.
*
* $Header: /cvsroot/pgsql/src/backend/utils/misc/ps_status.c,v 1.1
4 2003/08/04 23:59:39
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/ps_status.c,v 1.1
5 2003/11/08 19:07:24
tgl Exp $
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
* various details abducted from various places
...
...
@@ -57,7 +57,7 @@ extern char **environ;
#define PS_USE_PSTAT
#elif defined(HAVE_PS_STRINGS)
#define PS_USE_PS_STRINGS
#elif
defined(BSD) || defined(__bsdi__) || defined(__hurd
__)
#elif
(defined(BSD) || defined(__bsdi__) || defined(__hurd__)) && !defined(__darwin
__)
#define PS_USE_CHANGE_ARGV
#elif defined(__linux__) || defined(_AIX) || defined(__sgi) || (defined(sun) && !defined(BSD)) || defined(ultrix) || defined(__ksr__) || defined(__osf__) || defined(__QNX__) || defined(__svr4__) || defined(__svr5__) || defined(__darwin__)
#define PS_USE_CLOBBER_ARGV
...
...
@@ -143,7 +143,7 @@ save_ps_display_args(int argc, char *argv[])
}
ps_buffer
=
argv
[
0
];
ps_buffer_size
=
end_of_area
-
argv
[
0
]
-
1
;
ps_buffer_size
=
end_of_area
-
argv
[
0
];
/*
* move the environment out of the way
...
...
@@ -193,7 +193,13 @@ init_ps_display(const char *username, const char *dbname,
#endif
/* PS_USE_CHANGE_ARGV */
#ifdef PS_USE_CLOBBER_ARGV
save_argv
[
1
]
=
NULL
;
{
int
i
;
/* make extra argv slots point at end_of_area (a NUL) */
for
(
i
=
1
;
i
<
save_argc
;
i
++
)
save_argv
[
i
]
=
ps_buffer
+
ps_buffer_size
;
}
#endif
/* PS_USE_CLOBBER_ARGV */
/*
...
...
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