Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #86898 > unrolled thread
| Started by | Simon Richter <sjr@debian.org> |
|---|---|
| First post | 2025-04-15 13:30 +0200 |
| Last post | 2025-04-15 16:40 +0200 |
| Articles | 6 — 4 participants |
Back to article view | Back to linux.debian.kernel
Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone Simon Richter <sjr@debian.org> - 2025-04-15 13:30 +0200
Processed: Re: Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-04-15 16:40 +0200
Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone Luca Boccassi <luca.boccassi@gmail.com> - 2025-04-15 16:40 +0200
Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone Simon Richter <sjr@debian.org> - 2025-04-16 01:10 +0200
Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone Luca Boccassi <bluca@debian.org> - 2025-04-16 12:40 +0200
Processed: Re: Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-04-15 16:40 +0200
| From | Simon Richter <sjr@debian.org> |
|---|---|
| Date | 2025-04-15 13:30 +0200 |
| Subject | Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone |
| Message-ID | <KBMEh-dGUj-1@gated-at.bofh.it> |
Package: iproute2 Version: 6.1.0-3 Severity: minor File: /bin/ip Tags: upstream X-Debbugs-Cc: sjr@debian.org Hi, I started "ip mon" in the background, and closed the shell and the terminal. The "ip" command is still running, receiving netlink messages and writing to stdout, receiving EIO for this attempt. Monitor mode should probably exit when it cannot write output. Simon -- System Information: Debian Release: 12.9 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable') merged-usr: no Architecture: amd64 (x86_64) Foreign Architectures: i386, armhf Kernel: Linux 6.1.0-31-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages iproute2 depends on: ii debconf [debconf-2.0] 1.5.82 ii libbpf1 1:1.1.0-1 ii libbsd0 0.11.7-2 ii libc6 2.36-9+deb12u9 ii libcap2 1:2.66-4 ii libcap2-bin 1:2.66-4 ii libdb5.3 5.3.28+dfsg2-1 ii libelf1 0.188-2.1 ii libmnl0 1.0.4-3 ii libselinux1 3.4-1+b6 ii libtirpc3 1.3.3+ds-1 ii libxtables12 1.8.9-2 Versions of packages iproute2 recommends: ii libatm1 1:2.5.1-4+b2 Versions of packages iproute2 suggests: pn iproute2-doc <none> ii python3 3.11.2-1+b1 -- debconf information excluded
[toc] | [next] | [standalone]
| From | "Debian Bug Tracking System" <owner@bugs.debian.org> |
|---|---|
| Date | 2025-04-15 16:40 +0200 |
| Subject | Processed: Re: Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone |
| Message-ID | <KBPC9-dIMA-1@gated-at.bofh.it> |
| In reply to | #86898 |
Processing control commands: > tags -1 moreinfo Bug #1103242 [iproute2] /bin/ip: "ip mon" does not exit when output is gone Ignoring request to alter tags of bug #1103242 to the same tags previously set -- 1103242: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103242 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [next] | [standalone]
| From | Luca Boccassi <luca.boccassi@gmail.com> |
|---|---|
| Date | 2025-04-15 16:40 +0200 |
| Message-ID | <KBPC9-dIMA-3@gated-at.bofh.it> |
| In reply to | #86898 |
Control: tags -1 moreinfo On Tue, 15 Apr 2025 at 12:21, Simon Richter <sjr@debian.org> wrote: > > Package: iproute2 > Version: 6.1.0-3 > Severity: minor > File: /bin/ip > Tags: upstream > X-Debbugs-Cc: sjr@debian.org > > Hi, > > I started "ip mon" in the background, and closed the shell and the terminal. > > The "ip" command is still running, receiving netlink messages and writing to > stdout, receiving EIO for this attempt. > > Monitor mode should probably exit when it cannot write output. Hi, Isn't this normal behaviour? IE, if I do 'sleep infinity &' and close the terminal, it will likewise hang around
[toc] | [prev] | [next] | [standalone]
| From | Simon Richter <sjr@debian.org> |
|---|---|
| Date | 2025-04-16 01:10 +0200 |
| Message-ID | <KBXzH-dOfg-1@gated-at.bofh.it> |
| In reply to | #86902 |
Hi,
On 15.04.25 23:35, Luca Boccassi wrote:
>> I started "ip mon" in the background, and closed the shell and the terminal.
>> Monitor mode should probably exit when it cannot write output.
> Isn't this normal behaviour? IE, if I do 'sleep infinity &' and close
> the terminal, it will likewise hang around
Yes, but "sleep" will eventually exit, and doesn't produce output, so it
doesn't have an opportunity to notice that stdout has been revoked.
And since the only function in monitor mode is to produce this output,
it can just exit here.
Simon
[toc] | [prev] | [next] | [standalone]
| From | Luca Boccassi <bluca@debian.org> |
|---|---|
| Date | 2025-04-16 12:40 +0200 |
| Message-ID | <KC8lr-dV8N-13@gated-at.bofh.it> |
| In reply to | #86908 |
On Wed, 16 Apr 2025 at 00:06, Simon Richter <sjr@debian.org> wrote: > > Hi, > > On 15.04.25 23:35, Luca Boccassi wrote: > > >> I started "ip mon" in the background, and closed the shell and the terminal. > > >> The "ip" command is still running, receiving netlink messages and writing to stdout, receiving EIO for this attempt. > > >> Monitor mode should probably exit when it cannot write output. > > > Isn't this normal behaviour? IE, if I do 'sleep infinity &' and close > > the terminal, it will likewise hang around > > Yes, but "sleep" will eventually exit, and doesn't produce output, so it > doesn't have an opportunity to notice that stdout has been revoked. > > And since the only function in monitor mode is to produce this output, > it can just exit here. I see - then this is more like a feature request than a packaging/downstream regression/issue. Stephen, David, what do you think about the above request?
[toc] | [prev] | [next] | [standalone]
| From | "Debian Bug Tracking System" <owner@bugs.debian.org> |
|---|---|
| Date | 2025-04-15 16:40 +0200 |
| Subject | Processed: Re: Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone |
| Message-ID | <KBPC9-dIMA-5@gated-at.bofh.it> |
| In reply to | #86898 |
Processing control commands: > tags -1 moreinfo Bug #1103242 [iproute2] /bin/ip: "ip mon" does not exit when output is gone Added tag(s) moreinfo. -- 1103242: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103242 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.kernel
csiph-web