savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sr #110356] bash: please provide an easy way to spawn a new process gro


From: anonymous
Subject: [sr #110356] bash: please provide an easy way to spawn a new process group from script
Date: Sat, 31 Oct 2020 20:51:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36

URL:
  <https://savannah.nongnu.org/support/?110356>

                 Summary: bash: please provide an easy way to spawn a new
process group from script
                 Project: Savannah Administration
            Submitted by: None
            Submitted on: Sun 01 Nov 2020 12:51:58 AM UTC
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
             Assigned to: None
        Originator Email: clime7@gmail.com
        Operating System: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I was battling this problem now for several hours

i wanted to do this:

{ a | b; } & pid=$!

and then later

kill -- -$pid

to kill all the processes spawned by the pipeline.

But this proved to be immensely complicated as no new process group is spawned
from within a script (unless set -m which is not recommended)

Please, provide a syntactic construct to spawn a new process group (or at
least there should be some usable command to do that).




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/support/?110356>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]