Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #85855
| Path | csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Salvatore Bonaccorso <carnil@debian.org> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#1002711: linux-image-5.14.0-4-amd64: poll syscall does not work on some /proc files |
| Date | Thu, 20 Feb 2025 14:40:02 +0100 |
| Message-ID | <KieWu-Com-13@gated-at.bofh.it> (permalink) |
| References | <Dz6OS-34w-1@gated-at.bofh.it> <DA4hX-5xZ-1@gated-at.bofh.it> <Dz6OS-34w-1@gated-at.bofh.it> <DA8lz-7Wi-1@gated-at.bofh.it> <Dz6OS-34w-1@gated-at.bofh.it> <DA8lz-7Wi-1@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Thu Feb 20 13:30:08 2025 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -3.999 |
| Reply-To | Salvatore Bonaccorso <carnil@debian.org>, 1002711@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | Debian Kernel Team <debian-kernel@lists.debian.org> |
| X-Debian-Pr-Message | followup 1002711 |
| X-Debian-Pr-Package | src:linux |
| X-Debian-Pr-Source | linux |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-Debian-User | carnil |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1888309 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 56 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Bastian Blank <waldi@debian.org> |
| X-Original-Date | Thu, 20 Feb 2025 14:26:04 +0100 |
| X-Original-Message-ID | <Z7ctbJHNmFHpW7hK@eldamar.lan> |
| X-Original-References | <164064428127.2575666.2169828847247565410.reportbug@eyak.imag.fr> <Yc25joYTUGLQ4X2X@shell.thinkmo.de> <164064428127.2575666.2169828847247565410.reportbug@eyak.imag.fr> <8dc6e60b-a153-3fe2-ebac-663e8b8125d9@debian.org> <164064428127.2575666.2169828847247565410.reportbug@eyak.imag.fr> <8dc6e60b-a153-3fe2-ebac-663e8b8125d9@debian.org> |
| Xref | csiph.com linux.debian.bugs.dist:1234225 linux.debian.kernel:85855 |
Cross-posted to 2 groups.
Show key headers only | View raw
Hi,
On Thu, Dec 30, 2021 at 07:19:06PM +0100, Vincent Danjean wrote:
> On 30/12/2021 14:52, Bastian Blank wrote:
> > On Mon, Dec 27, 2021 at 11:31:21PM +0100, Vincent Danjean wrote:
> > > On a plain (with more than two bytes) file, the second poll succeed.
> > > On /proc/bus/input/devices, the second poll hangs.
> > > Note: this is an old behavior. I initially observe it on an embeded system with
> > > a 4.1 kernel.
> >
> > /proc is no real filesystem. It simply does not support poll, because
> > the output is generated while you are reading it, so it does not know
> > when anything changes. See also
> > https://unix.stackexchange.com/questions/74713/how-frequently-is-the-proc-file-system-updated-on-linux?rq=1
> >
> > If you want to know about hardware changes, use udev or listen to kernel
> > netlink messages.
>
> I understand that /proc is different. But I'm not monitoring it.
> My goal was only to read it totally from a busybox shell with a
> "while read" loop to find the eventX associated with the
> touchscreen of the e-reader.
> And the first read from busybox shell never complete (instead of
> returning the first line of the file) due to the fact that
> busybox use poll, then read a byte, then use poll again.
>
>
> Do you think I should reassign this bug to busybox?
>
> Or do you think I'm wrong trying to read the /proc file
> from a shell script without to copy it elsewhere before?
>
> Stalling:
> busybox sh -c 'while read l ; do echo $l ; done < /proc/bus/input/devices'
> Working (but bash is not present on the initial target system):
> bash -c 'while read l ; do echo $l ; done < /proc/bus/input/devices'
>
> As workaround, I'm currently using a copy of the file
> ("busybox cp" works). It should probably also be possible
> to get the same kind of info from /sys files but this seems
> less easy.
>
> I just saw that other files seems to work:
> Ok:
> busybox sh -c 'read l < /proc/bus/input/handlers ; echo $l'
> Stale:
> busybox sh -c 'read l < /proc/bus/input/devices ; echo $l'
>
> Regards,
> Vincent
Do we still consider this a valid src:linux bug or should it be
closed, reassigned?
Regards,
Salvatore
Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread
Bug#1002711: linux-image-5.14.0-4-amd64: poll syscall does not work on some /proc files Salvatore Bonaccorso <carnil@debian.org> - 2025-02-20 14:40 +0100
csiph-web