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

Path csiph.com!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod
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 Wed, 16 Apr 2025 12:40:01 +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>
X-Original-To David Ahern <dsahern@gmail.com>, Stephen Hemminger <stephen@networkplumber.org>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Wed Apr 16 10:36:09 2025
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -4.2
Reply-To Luca Boccassi <bluca@debian.org>, 1103242@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 1103242
X-Debian-Pr-Package iproute2
X-Debian-Pr-Keywords upstream
X-Debian-Pr-Source iproute2
X-Gm-Message-State AOJu0YwXh/s4jlG/0oni2ER+EsrSdUnS0AqLD9XxvlGNsdbnBpVgR+Bg eVSYFZ+rFaizzuqfUgy1b3JpEILkJ0ziJL0eoerr0fpdR3Qg2ML2BfsgN6Uq
X-Gm-Gg ASbGnctTLbL0m572xBszWbV/xNW75Zdi5CEi/7d7NDij1/394pEdpWfblRxebmRHCZ/ ObvTdtVidQWJGUQfhDrjcOai8xTnRXl/TEqzVBDtWq8/RFygIF8oxi8DIsJLcqLHzkdBRUbShKl lTmHMFdWIEUk79rG7fhllOWc7fRS17PoeNH6IgBuYnoztMmUUmo1SBFp3cwzQHnmflXHIaLvciN 855HMN3m9EkgxqlIhT8zo3nEWR/dOVSwWvZ01dCOhDubDt8bIztPNeFdMgX7PzVmTj4yeJFyOux mCto/BkpV7sf5jVjlChRLurj4F/c6O5fdaoc58xqU/30ohDEo9qEcy6vPnDbzlD1j1NwC0d7R3q caw==
X-Google-SMTP-Source AGHT+IGgrngtD16crJdB5wC5wtKKVayjjxkaIJurK884Me2DYNCHEoPxcyzYyUXtnR/uxjWR3sVN9g==
X-Received by 2002:a05:690c:6d0a:b0:6fe:bfb9:b2f1 with SMTP id 00721157ae682-706b3256d78mr18053117b3.2.1744799664849; Wed, 16 Apr 2025 03:34:24 -0700 (PDT)
X-Received by 2002:a05:6902:138f:b0:e6d:df8b:4658 with SMTP id 3f1490d57ef6-e7275e016ffmr1615820276.34.1744799663143; Wed, 16 Apr 2025 03:34:23 -0700 (PDT)
MIME-Version 1.0
X-Gmail-Original-Message-ID <CAMw=ZnSZZgjN3asWLO9BvHTXDeiAf=Peo23sSvZRQbds3vWP=w@mail.gmail.com>
X-Gm-Features ATxdqUGC8u4feNCRvZWx7_1aGnVGBsZY1hPCS7ELYMOoqNeTL6Lw69wjwCcdvMk
Content-Type text/plain; charset="UTF-8"
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1899704
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 26
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc 1103242@bugs.debian.org, Simon Richter <sjr@debian.org>, Netdev <netdev@vger.kernel.org>
X-Original-Date Wed, 16 Apr 2025 11:34:12 +0100
X-Original-Message-ID <CAMw=ZnSZZgjN3asWLO9BvHTXDeiAf=Peo23sSvZRQbds3vWP=w@mail.gmail.com>
X-Original-References <174471593618.5319.11061380619817212706.reportbug@localhost> <CAMw=ZnTZeodMmFFtc9ft39qMn2ffzM7jyWs_bqnp15_qmijYQg@mail.gmail.com> <9fc9360d-dc85-4486-a1a8-347495376165@debian.org> <174471593618.5319.11061380619817212706.reportbug@localhost> <9fc9360d-dc85-4486-a1a8-347495376165@debian.org>
Xref csiph.com linux.debian.bugs.dist:1242259 linux.debian.kernel:86918

Cross-posted to 2 groups.

Show key headers only | 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