[Rpm-maint] [rpm-software-management/rpm] RFE: implement wrapper for posix.fork()+posix.exec() (#389)

Igor Gnatenko notifications at github.com
Tue Feb 6 11:11:50 UTC 2018


Many of packages which use filetriggers (e.g glibc and systemd) use following construction:

```lua
pid = posix.fork()
if pid == 0 then
  assert(posix.exec("/foo/bar"))
elseif pid > 0 then
  posix.wait(pid)
end
```

this is just not user friendly and we could implement something like `rpm.execute([args])` which would do all this boring things. Another option is definitely to create macro for this (like `%rpm_lua_execute`), but it's probably not user-friendly.

-- 
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/389
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180206/b9918be1/attachment.html>


More information about the Rpm-maint mailing list