diff --git a/src/include/utils/ps_status.h b/src/include/utils/ps_status.h index 46ef3ff8c4a083efb303df5f41a26cb8e6871f5c..31e98f6ce302d92e0c1e400167bbbb18debc8083 100644 --- 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() \