]> granicus.if.org Git - php/commitdiff
Files should be shared among processes.
authorSascha Schumann <sas@php.net>
Fri, 18 May 2001 17:48:43 +0000 (17:48 +0000)
committerSascha Schumann <sas@php.net>
Fri, 18 May 2001 17:48:43 +0000 (17:48 +0000)
ext/standard/file.c

index 04aadafb2e273c92414b1ebd951bf6f44bbd81f8..a1d7a74e4169a6828422054b797bb9f50a403729 100644 (file)
@@ -1546,7 +1546,7 @@ static size_t php_passthru_fd(int socketd, FILE *fp, int issock)
                if (sbuf.st_size > sizeof(buf)) {
                        off = ftell(fp);
                        len = sbuf.st_size - off;
-                       p = mmap(0, len, PROT_READ, MAP_PRIVATE, fd, off);
+                       p = mmap(0, len, PROT_READ, MAP_SHARED, fd, off);
                        if (p != (void *) MAP_FAILED) {
                                PHPWRITE(p, len);
                                munmap(p, len);