diff options
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 4129c71efad..78e66a06ac5 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -3374,8 +3374,7 @@ BackendStartup(ClientSocket *client_sock) /* Hasn't asked to be notified about any bgworkers yet */ bn->bgworker_notify = false; - MyPMChildSlot = bn->child_slot; - pid = postmaster_child_launch(bn->bkend_type, + pid = postmaster_child_launch(bn->bkend_type, bn->child_slot, (char *) &startup_data, sizeof(startup_data), client_sock); if (pid < 0) @@ -3700,8 +3699,7 @@ StartChildProcess(BackendType type) return NULL; } - MyPMChildSlot = pmchild->child_slot; - pid = postmaster_child_launch(type, NULL, 0, NULL); + pid = postmaster_child_launch(type, pmchild->child_slot, NULL, 0, NULL); if (pid < 0) { /* in parent, fork failed */ @@ -3878,8 +3876,8 @@ StartBackgroundWorker(RegisteredBgWorker *rw) (errmsg_internal("starting background worker process \"%s\"", rw->rw_worker.bgw_name))); - MyPMChildSlot = bn->child_slot; - worker_pid = postmaster_child_launch(B_BG_WORKER, (char *) &rw->rw_worker, sizeof(BackgroundWorker), NULL); + worker_pid = postmaster_child_launch(B_BG_WORKER, bn->child_slot, + (char *) &rw->rw_worker, sizeof(BackgroundWorker), NULL); if (worker_pid == -1) { /* in postmaster, fork failed ... */ |