Skip to content

Commit 8d8d5cb

Browse files
committed
Pad the ps_status display with nulls, not blanks, on Darwin.
A long time ago, this didn't work nicely, but it seems to work on all recent versions of OS X. The blank-pad method is less desirable since it results in lots of extra space in ps' output. Per Alexey Klyukin.
1 parent 303696c commit 8d8d5cb

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
@@ -5,7 +5,7 @@
55
* to contain some useful information. Mechanism differs wildly across
66
* platforms.
77
*
8-
* $PostgreSQL: pgsql/src/backend/utils/misc/ps_status.c,v 1.42 2010/07/06 19:18:59 momjian Exp $
8+
* $PostgreSQL: pgsql/src/backend/utils/misc/ps_status.c,v 1.43 2010/09/04 17:45:56 tgl Exp $
99
*
1010
* Copyright (c) 2000-2010, PostgreSQL Global Development Group
1111
* various details abducted from various places
@@ -76,7 +76,7 @@ bool update_process_title = true;
7676

7777

7878
/* Different systems want the buffer padded differently */
79-
#if defined(_AIX) || defined(__linux__) || defined(__svr4__)
79+
#if defined(_AIX) || defined(__linux__) || defined(__svr4__) || defined(__darwin__)
8080
#define PS_PADDING '\0'
8181
#else
8282
#define PS_PADDING ' '

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy