Your message dated Tue, 6 Mar 2007 22:28:37 +0100 with message-id <20070306212837.GA15815@wavehammer.waldi.eu.org> and subject line Bug#300640: glibc: select() buggy on Hurd has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: glibc: select() buggy on Hurd
- From: Marc Dequènes (Duck) <Duck@DuckCorp.org>
- Date: Sun, 20 Mar 2005 23:23:27 +0100
- Message-id: <87wts2ards.fsf@Orfeo.duckcorp.org>
Package: glibc Version: 2.3.2.ds1-20 Coin, Here is a simple poll() test case : (hurd poll() directly uses hurd_select()) <quote file="poll.c"> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/poll.h> int main(void) { struct pollfd pfd[1]; int fd, ret; char c; fd = open("zzz", O_RDONLY); pfd[0].fd = fd; pfd[0].events = POLLIN; while ((ret = poll(pfd, 1, 10)) >= 0) { if (ret == 0) continue; if (pfd[0].revents & POLLERR) break; if (pfd[0].revents & POLLIN) { printf("DATA !\n"); read(fd, &c, 1); } } return 0; } </quote> Test : mkfifo zzz ./poll & echo "coin" >zzz Result on linux : DATA ! DATA ! DATA ! DATA ! DATA ! I've got 1 "DATA !" per character (including "\n"). Result on Hurd : DATA ! DATA ! DATA ! DATA ! DATA ! DATA ! DATA ! [...] I've got an infinite number of "DATA !". It is like if the select state is not reset after reading. I tried to find the bug but i need help, this software is not an easy peace. Thanks. -- Marc Dequènes (Duck)Attachment: pgpCveH6n5QMh.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
- To: Samuel Thibault <samuel.thibault@ens-lyon.org>, 300640-done@bugs.debian.org
- Subject: Re: Bug#300640: glibc: select() buggy on Hurd
- From: Bastian Blank <waldi@debian.org>
- Date: Tue, 6 Mar 2007 22:28:37 +0100
- Message-id: <20070306212837.GA15815@wavehammer.waldi.eu.org>
- In-reply-to: <[🔎] 20070306210052.GA4887@interface.famille.thibault.fr>
- References: <87wts2ards.fsf@Orfeo.duckcorp.org> <20050321091626.GA30531@wavehammer.waldi.eu.org> <[🔎] 20070306210052.GA4887@interface.famille.thibault.fr>
On Tue, Mar 06, 2007 at 10:00:52PM +0100, Samuel Thibault wrote: > Should we really keep this bug opened? I agree with Bastian Blank that > the program should check the result of read() so as to discover end of > file. No. It is no bug. I'm just closing it therefor. Bastian -- There is a multi-legged creature crawling on your shoulder. -- Spock, "A Taste of Armageddon", stardate 3193.9Attachment: signature.asc
Description: Digital signature
--- End Message ---