Messages in this thread | | | Date | Mon, 22 Mar 1999 06:10:33 +0100 (CET) | From | Patrick Mau <> | Subject | NNTPcache and mmap() |
| |
Hi all,
has anyone tried to build nntpcache with kernel 2.2.3 ? The problem is that it uses MAP_ANONYMOUS to map its cache and _llseek() fails with ESPIPE.
Can somebody tell me, if it's a kernel bug or (if not) how one should tweak the mmap_results.h to make it working.
MANY thanks to all who reply.
cheers, Patrick
Here's the strace output:
4841 select(8, [4 6], NULL, [4 6], NULL) = 1 (in [4]) 4841 wait4(-1, NULL, WNOHANG, NULL) = -1 ECHILD (No child processes) 4841 accept(4, {sin_family=AF_INET, sin_port=htons(1162), sin_addr=inet_addr("141.39.234.61")}, [16]) = 8 4841 time([922078721]) = 922078721 4841 getpid() = 4841 4841 SYS_174(0xd, 0xbfffa284, 0xbfffa1e4, 0x8, 0xd) = 0 4841 send(3, "<63>Mar 22 05:58:41 nntpcached[4"..., 76, 0) = 76 4841 SYS_174(0xd, 0xbfffa288, 0, 0x8, 0xd) = 0 4841 socketpair(PF_UNIX, SOCK_STREAM, , 0, [9, 10]) = 0 4841 time(NULL) = 922078721 4841 getpid() = 4841 4841 fork() = 4850 4841 close(8) = 0 4841 close(10) = 0 4841 time(NULL) = 922078721 4841 time(NULL) = 922078721 4841 time(NULL) = 922078721 4841 select(10, [4 6 9], NULL, [4 6 9], NULL <unfinished ...> 4850 getpid() = 4850 4850 getpriority(PRIO_PROCESS, 0) = 20 4850 setpriority(PRIO_PROCESS, 0, 10) = 0 4850 SYS_174(0x11, 0xbfffa344, 0xbfffa2a4, 0x8, 0x11) = 0 4850 SYS_174(0x1, 0xbfffa33c, 0xbfffa29c, 0x8, 0x1) = 0 4850 SYS_174(0xd, 0xbfffa4a4, 0, 0x8, 0xd) = 0 4850 close(3) = 0 4850 close(0) = 0 4850 close(1) = 0 4850 close(2) = 0 4850 setsockopt(8, SOL_SOCKET, SO_SNDBUF, [8192], 4) = 0 4850 dup2(8, 0) = 0 4850 close(8) = 0 4850 dup2(0, 1) = 1 4850 dup2(1, 2) = 2 4850 setsockopt(0, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 4850 fcntl(0, F_GETFL) = 0x2 (flags O_RDWR) 4850 fstat(0, {st_mode=0, st_size=0, ...}) = 0 4850 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 4850 _llseek(0, 0, 0xbfffa480, SEEK_SET) = -1 ESPIPE (Illegal seek)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |