[147224] trunk/base/src/pextlib1.0/system.c

Brandon Allbery allbery.b at gmail.com
Thu Mar 31 09:01:24 PDT 2016

On Thu, Mar 31, 2016 at 11:56 AM, Rainer Müller <raimue at macports.org> wrote:

> A better way could be to handle SIGINT/SIGQUIT in a custom handler and
> on reception of a signal, we would kill the child process and return the
> error {POSIX SIG SIGINT} as result of SystemCmd. However, I am unsure
> how we would force the child to terminate and if this can be done reliably.

Seems to me you want an altered version of the old way: instead of printing
a message, set an "interrupted by user" flag and resume waiting for the
child, then ignore the child exit and return your "interrupted by user"

brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20160331/8825d3ba/attachment.html>

More information about the macports-dev mailing list