[GHC] #7229: Detecting if a process was killed by a signal is impossible

GHC cvs-ghc at haskell.org
Tue Sep 25 03:42:53 CEST 2012


#7229: Detecting if a process was killed by a signal is impossible
----------------------------------+-----------------------------------------
    Reporter:  benmachine         |       Owner:                  
        Type:  bug                |      Status:  new             
    Priority:  high               |   Milestone:  7.6.2           
   Component:  libraries/process  |     Version:                  
    Keywords:                     |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple   |     Failure:  None/Unknown    
  Difficulty:  Unknown            |    Testcase:                  
   Blockedby:                     |    Blocking:                  
     Related:                     |  
----------------------------------+-----------------------------------------

Comment(by benmachine):

 Thanks Simon, that's certainly an improvement. I'm inclined to agree with
 andersk that it's not the principled solution.

 My man page for WCOREDUMP says

 {{{
        WCOREDUMP(status)
               returns  true  if  the  child produced a core dump.  This
 macro
               should only be employed if  WIFSIGNALED  returned  true.
 This
               macro  is not specified in POSIX.1-2001 and is not available
 on
               some UNIX implementations (e.g., AIX, SunOS).   Only  use
 this
               enclosed in #ifdef WCOREDUMP ... #endif.
 }}}

 I don't know how worried we are about that.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7229#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list