Commit f19ae146 authored by Bruce Momjian's avatar Bruce Momjian

Update so init displays status with setproctitle too, like the rest of them.

parent a267c88d
...@@ -20,6 +20,7 @@ extern char Ps_status_buffer[]; ...@@ -20,6 +20,7 @@ extern char Ps_status_buffer[];
#define PS_INIT_STATUS(argc, argv, execname, username, hostname, dbname) \ #define PS_INIT_STATUS(argc, argv, execname, username, hostname, dbname) \
do { \ do { \
sprintf(Ps_status_buffer, "%s %s %s %s", execname, hostname, username, dbname); \ sprintf(Ps_status_buffer, "%s %s %s %s", execname, hostname, username, dbname); \
setproctitle("%s", Ps_status_buffer); \
} while (0) } while (0)
#define PS_CLEAR_STATUS() \ #define PS_CLEAR_STATUS() \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment