From 31c453165b5a656044ce1dbce89f5828c1c7e23c Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Tue, 13 Jan 2015 13:12:37 +0100 Subject: Commonalize process startup code. Move common code, that was duplicated in every postmaster child/every standalone process, into two functions in miscinit.c. Not only does that already result in a fair amount of net code reduction but it also makes it much easier to remove more duplication in the future. The prime motivation wasn't code deduplication though, but easier addition of new common code. --- src/backend/postmaster/checkpointer.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/backend/postmaster/checkpointer.c') diff --git a/src/backend/postmaster/checkpointer.c b/src/backend/postmaster/checkpointer.c index 4d1ba40ec88..3c9c216c6f1 100644 --- a/src/backend/postmaster/checkpointer.c +++ b/src/backend/postmaster/checkpointer.c @@ -196,17 +196,6 @@ CheckpointerMain(void) CheckpointerShmem->checkpointer_pid = MyProcPid; - /* - * If possible, make this process a group leader, so that the postmaster - * can signal any child processes too. (checkpointer probably never has - * any child processes, but for consistency we make all postmaster child - * processes do this.) - */ -#ifdef HAVE_SETSID - if (setsid() < 0) - elog(FATAL, "setsid() failed: %m"); -#endif - /* * Properly accept or ignore signals the postmaster might send us * -- cgit v1.2.3