Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d8d5cb

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 recentversions of OS X. The blank-pad method is less desirable since it resultsin lots of extra space in ps' output. Per Alexey Klyukin.
1 parent303696c commit8d8d5cb

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 @@ boolupdate_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
#definePS_PADDING '\0'
8181
#else
8282
#definePS_PADDING ' '

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp