httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garey Smiley" <ga...@main.slink.com>
Subject OS/2 patch for scoreboard.
Date Sat, 06 Jul 1996 13:20:02 GMT
Could someone please commit this.

*** http_main.c.orig	Wed Jun 26 15:52:10 1996
--- http_main.c	Sat Jul 06 09:11:30 1996
***************
*** 606,612 ****
--- 606,617 ----
  
      have_scoreboard_fname = 1;
  
+ #ifdef __EMX__
+     /* OS/2 needs binary mode set. */
+     scoreboard_fd = popenf(p, scoreboard_fname,
O_CREAT|O_BINARY|O_RDWR, 0644);
+ #else
      scoreboard_fd = popenf(p, scoreboard_fname, O_CREAT|O_RDWR,
0644);
+ #endif
      if (scoreboard_fd == -1)
      {
  	fprintf (stderr, "Cannot open scoreboard file:\n");
***************
*** 626,632 ****
--- 631,642 ----
  #if !defined(HAVE_MMAP) && !defined(HAVE_SHMGET)
      if (scoreboard_fd != -1) pclosef (p, scoreboard_fd);
  
+ #if def __EMX__    
+     /* OS/2 needs binary mode set. */
+     scoreboard_fd = popenf(p, scoreboard_fname,
O_CREAT|O_BINARY|O_RDWR, 0666);
+ #else
      scoreboard_fd = popenf(p, scoreboard_fname, O_CREAT|O_RDWR,
0666);
+ #endif
      if (scoreboard_fd == -1)
      {
  	fprintf (stderr, "Cannot open scoreboard file:\n");


Garey Smiley
SoftLink Services
garey@slink.com
http://www.slink.com/
(330)848-1312 FAX/Data(330)699-4474

Mime
View raw message