worker_spi: Initialize bgw_notify_pid in all cases.

Robert Haas <rhaas@postgresql.org>

Commit: 616afee14d7e8d6690286aaf8a2a0a01168c378a
Author: Robert Haas <rhaas@postgresql.org>
Date: 2014-05-27T02:56:28Z
Releases: 9.4.0
worker_spi: Initialize bgw_notify_pid in all cases.

Commit 090d0f2050647958865cb495dff74af7257d2bb4 added new code showing
how it can be useful to set bgw_notify_pid to a non-zero value, but it
failed to make sure that the existing call to RegisterBackgroundWorker
initialized the new field at all.

Report and patch by Shigeru Hanada.

Files

PathChange+/−
contrib/worker_spi/worker_spi.c modified +1 −0