Skip to content

Commit 49c8368

Browse files
mbanckCommitfest Bot
authored andcommitted
Define PS_USE_CLOBBER_ARGV on GNU/Hurd to (re-)enable process title changes.
Until d2ea2d3, the PS_USE_PS_STRINGS option was used on the GNU Hurd. As this option got removed and PS_USE_CLOBBER_ARGV appears to work fine nowadays on the Hurd, define this one to re-enable process title changes on this platform.
1 parent 447aae1 commit 49c8368

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/misc/ps_status.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ bool update_process_title = DEFAULT_UPDATE_PROCESS_TITLE;
5252
#define PS_USE_SETPROCTITLE_FAST
5353
#elif defined(HAVE_SETPROCTITLE)
5454
#define PS_USE_SETPROCTITLE
55-
#elif defined(__linux__) || defined(__sun) || defined(__darwin__)
55+
#elif defined(__linux__) || defined(__sun) || defined(__darwin__) || defined(__GNU__)
5656
#define PS_USE_CLOBBER_ARGV
5757
#elif defined(WIN32)
5858
#define PS_USE_WIN32
@@ -62,7 +62,7 @@ bool update_process_title = DEFAULT_UPDATE_PROCESS_TITLE;
6262

6363

6464
/* Different systems want the buffer padded differently */
65-
#if defined(__linux__) || defined(__darwin__)
65+
#if defined(__linux__) || defined(__darwin__) || defined(__GNU__)
6666
#define PS_PADDING '\0'
6767
#else
6868
#define PS_PADDING ' '

0 commit comments

Comments
 (0)