[Rpm-maint] [rpm-software-management/rpm] RPM must kill all childs on exit (from section?) (#134)

Panu Matilainen notifications at github.com
Mon Sep 17 12:40:00 UTC 2018


Well I'm not seriously suggesting dragging in systemd for a rare corner case issue. OTOH we're not going to catch *all* children launched from a shell we invoked without something more advanced and non-portable - all of those are likely to look like serious overkill anyway. 

We could of course do something like this:

```
-%___build_post         exit $?
+%___build_post \
+  RPM_EC=$?\
+  for pid in $(jobs -p); do kill ${pid}; done\
+  exit ${RPM_EC}\
+%{nil}
```

...which won't catch a process that forked into background by itself, but it'd catch anything invoked with &. Which would be better than nothing I guess.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/134#issuecomment-421998519
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180917/c26ef887/attachment.html>


More information about the Rpm-maint mailing list