Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #86918

Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone

From Luca Boccassi <bluca@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1103242: /bin/ip: "ip mon" does not exit when output is gone
Date 2025-04-16 12:40 +0200
Message-ID <KC8lr-dV8N-13@gated-at.bofh.it> (permalink)
References <KBMEh-dGUj-1@gated-at.bofh.it> <KBPC9-dIMA-3@gated-at.bofh.it> <KBXzH-dOfg-1@gated-at.bofh.it> <KBMEh-dGUj-1@gated-at.bofh.it> <KBXzH-dOfg-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


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?

Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web