[Haskell-cafe] gracefully invoking `less` using System.Process (andignoring ctrl-c)

Brandon Allbery allbery.b at gmail.com
Fri Dec 12 18:21:04 UTC 2014


On Fri, Dec 12, 2014 at 1:19 PM, Donn Cave <donn at avvanta.com> wrote:
>
> > The problem is that pressing CTRL-C in `less` now kills everything
> (darcs+less).
>
> And didn't before?  Do you suppose, because of the createProcess?
>

The withSIgnalHandled function cited in the original message explicitly
un-ignores SIGINT, which leads to the observed behavior.

-- 
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: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141212/bf80d4e6/attachment.html>


More information about the Haskell-Cafe mailing list