Skip to content

Commit 3995e4a

Browse files
committed
Define PS_USE_CLOBBER_ARGV on GNU/Hurd.
This is a backpatch of 32b2366 to v14 and v15. * Remove ancient test for __hurd__, which intended to activate PS_USE_CHANGE_ARGV in these branches but turned out not to be defined on modern systems. * Add new test for__GNU__ to activate PS_USE_CLOBBER_ARGV, like the newer branches. Author: Michael Banck <mbanck@debian.org> Discussion: https://postgr.es/m/CA%2BhUKGJMNGUAqf27WbckYFrM-Mavy0RKJvocfJU%3DJ2XcAZyv%2Bw%40mail.gmail.com Backpatch-through: 14-15
1 parent ad5cc3a commit 3995e4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/utils/misc/ps_status.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ bool update_process_title = true;
7373
#define PS_USE_PSTAT
7474
#elif defined(HAVE_PS_STRINGS)
7575
#define PS_USE_PS_STRINGS
76-
#elif (defined(BSD) || defined(__hurd__)) && !defined(__darwin__)
76+
#elif defined(BSD) && !defined(__darwin__)
7777
#define PS_USE_CHANGE_ARGV
78-
#elif defined(__linux__) || defined(_AIX) || defined(__sgi) || (defined(sun) && !defined(BSD)) || defined(__svr5__) || defined(__darwin__)
78+
#elif defined(__linux__) || defined(_AIX) || defined(__sgi) || (defined(sun) && !defined(BSD)) || defined(__svr5__) || defined(__darwin__) || defined(__GNU__)
7979
#define PS_USE_CLOBBER_ARGV
8080
#elif defined(WIN32)
8181
#define PS_USE_WIN32
@@ -85,7 +85,7 @@ bool update_process_title = true;
8585

8686

8787
/* Different systems want the buffer padded differently */
88-
#if defined(_AIX) || defined(__linux__) || defined(__darwin__)
88+
#if defined(_AIX) || defined(__linux__) || defined(__darwin__) || defined(__GNU__)
8989
#define PS_PADDING '\0'
9090
#else
9191
#define PS_PADDING ' '

0 commit comments

Comments
 (0)