The previous patch makes the server tell the client its pgid. This patch stores it in hgclient_t and adds a function to get it.