#3994: Add support for creating and interrupting process groups
----------------------------------+-----------------------------------------
Reporter: hamish | Owner: simonmar
Type: feature request | Status: patch
Priority: high | Milestone: 7.2.1
Component: libraries/process | Version: 6.12.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
----------------------------------+-----------------------------------------
Comment(by Favonia):
I quickly reviewed the code. For the new function I might prefer
{{{
OpenHandle h -> do
gh <- getProcessGroupIDOf h
signalProcessGroup sigINT gh
return p_
}}}
instead of
{{{
OpenHandle h -> do
signalProcessGroup sigINT h
return p_
}}}
if possible. The difference, as pointed out in my previous comments, is
that this will work even if {{{create_group=False}}} or the child has
changed its group. The technical problem is that {{{getProcessGroupIDOf}}}
(wrapper of {{{getpgid}}}) does not exist in Posix package now! I will try
to write a wrapper... hopefully things will be integrated into
{{{System.Posix.Process}}}.
PS: Thanks for your hard work. I wish I knew this ticket so that I didn't
have to implement this by myself. :)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3994#comment:16>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs