Ticket #9 (closed task: fixed)
/dev/zero disapearing after starting apache
| Reported by: | jfbustarret@… | Owned by: | moo |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.1 |
| Component: | cacher | Version: | 1.0 |
| Keywords: | Cc: | ||
| Blocked By: | PHP Version: | ||
| Application: | Need User Feedback: | no | |
| Other Exts: | SAPI: | Irrelevant | |
| Probability: | Blocking: |
Description
When using the default ini settings (xcache.mmap_path = "/dev/zero"), xcache removes /dev/zero :
strace gives this :
[pid 28606] open("/dev/zero", O_RDWR) = 18
[pid 28606] ftruncate(18, 33554432) = -1 EINVAL (Invalid argument)
[pid 28606] mmap2(NULL, 33554432, PROT_READ|PROT_WRITE, MAP_SHARED, 18, 0) = 0xb47b9000
[pid 28606] munmap(0, 33554432) = 0
[pid 28606] close(18) = 0
[pid 28606] unlink("/dev/zero") = 0
[pid 28606] getuid32() = 0
[pid 28606] open("/tmp/.xcache.0.0.1804289383.lock", O_RDWR|O_CREAT, 0666) = 18
[pid 28606] unlink("/tmp/.xcache.0.0.1804289383.lock") = 0
[pid 28606] open("/dev/zero", O_RDWR) = -1 ENOENT (No such file or directory)
Platform is : Linux (Suse 9.2)/PHP 5.1.4

