projects
/
postgresql
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a267c88
)
Update so init displays status with setproctitle too, like the rest of them.
author
Bruce Momjian
<bruce@momjian.us>
Wed, 24 May 2000 00:24:17 +0000
(
00:24
+0000)
committer
Bruce Momjian
<bruce@momjian.us>
Wed, 24 May 2000 00:24:17 +0000
(
00:24
+0000)
src/include/utils/ps_status.h
patch
|
blob
|
history
diff --git
a/src/include/utils/ps_status.h
b/src/include/utils/ps_status.h
index 46ef3ff8c4a083efb303df5f41a26cb8e6871f5c..31e98f6ce302d92e0c1e400167bbbb18debc8083 100644
(file)
--- a/
src/include/utils/ps_status.h
+++ b/
src/include/utils/ps_status.h
@@
-20,6
+20,7
@@
extern char Ps_status_buffer[];
#define PS_INIT_STATUS(argc, argv, execname, username, hostname, dbname) \
do { \
sprintf(Ps_status_buffer, "%s %s %s %s", execname, hostname, username, dbname); \
+ setproctitle("%s", Ps_status_buffer); \
} while (0)
#define PS_CLEAR_STATUS() \