|Subject: Re: Bug#367584: nmap man pages maybe warn of breaking /dev/stdin ^^^ you mean mmap of course
On Wed, May 17, 2006 at 05:33:32AM +0800, Dan Jacobson wrote: > Package: manpages-dev > Version: 2.25-3 > Severity: minor > > Maybe the mmap man pages should warn that this messes things like > Bug#367297: dpkg --merge-avail /dev/stdin doesn't work > > # ssh ...|dpkg --merge-avail /dev/stdin > > Updating available packages info, using /dev/stdin. > > Information about 0 package(s) was updated. > I guess this happens because we open the file with mmap. > Support for reading the available data from stdin would probably have to > be added seperatly. > up, or maybe this is all over my head. This probably fails because pipes aren't seekable; could you strace the process and report what happens between the open /dev/stdin and close of that fd? Why do you suggest that it is mmaped, anyway? I see this: |open64("/dev/stdin", 0, 01007404334) = 4 |malloc(44) = 0x812a120 |__fxstat64(3, 4, 0xbfdadd68) = 0 |memset(0xbfdadcf4, '\000', 116) = 0xbfdadcf4 |free(0x812a120) = <void> |free(NULL) = <void> |close(4) = 0 ... |strace dpkg --merge-avail /dev/stdin 2>&1 |less -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]