1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00

Files should be shared among processes.

This commit is contained in:
Sascha Schumann
2001-05-18 17:48:43 +00:00
parent 002d241a03
commit 0255bb01e4

View 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);