]> granicus.if.org Git - postgresql/commitdiff
Non-Windows EXEC_BACKEND path was broken by recent write_inheritable_socket
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 Aug 2009 17:42:54 +0000 (17:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 Aug 2009 17:42:54 +0000 (17:42 +0000)
change ... it's got to return true.

src/backend/postmaster/postmaster.c

index 7c96d978a0d129490e9031525b6cec089ff0316b..ff2ba13ef0b1b9c2266735d441aaae27fec1d07a 100644 (file)
@@ -37,7 +37,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.590 2009/08/24 20:08:32 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.591 2009/08/28 17:42:54 tgl Exp $
  *
  * NOTES
  *
@@ -4488,7 +4488,7 @@ extern PMSignalData *PMSignalState;
 extern int     pgStatSock;
 
 #ifndef WIN32
-#define write_inheritable_socket(dest, src, childpid) (*(dest) = (src))
+#define write_inheritable_socket(dest, src, childpid) ((*(dest) = (src)), true)
 #define read_inheritable_socket(dest, src) (*(dest) = *(src))
 #else
 static bool write_duplicated_handle(HANDLE *dest, HANDLE src, HANDLE child);