Tom Lane wrote:
Um. Shouldn't that whole file be #ifndef EXEC_BACKEND?

Woops, sorry about that.

We can't make the file #ifndef EXEC_BACKEND since fork_process() is used by the Unix implementation of internal_forkexec(), but #ifndef WIN32 should work. I've applied the attached patch to HEAD.

-Neil
Index: src/backend/postmaster/fork_process.c
===================================================================
RCS file: /var/lib/cvs/pgsql/src/backend/postmaster/fork_process.c,v
retrieving revision 1.2
diff -c -r1.2 fork_process.c
*** src/backend/postmaster/fork_process.c	13 Mar 2005 23:27:38 -0000	1.2
--- src/backend/postmaster/fork_process.c	15 Mar 2005 23:53:32 -0000
***************
*** 16,21 ****
--- 16,22 ----
  #include <sys/time.h>
  #include <unistd.h>
  
+ #ifndef WIN32
  /*
   * Wrapper for fork(). Return values are the same as those for fork():
   * -1 if the fork failed, 0 in the child process, and the PID of the
***************
*** 80,82 ****
--- 81,84 ----
  
  	return result;
  }
+ #endif /* ! WIN32 */
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Reply via email to