Bug 4004

Summary: frysk.expunit.Expect doesn't consume sigchlds
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2234, 2243, 2244    

Description Andrew Cagney 2007-02-08 02:23:49 UTC
The sigchild generated isn't consumed by frysk.expunit tests, leading to later
tests failing.

The waitpid event is consumed.
Comment 1 Andrew Cagney 2007-02-09 17:47:08 UTC
Index: frysk-core/frysk/bindir/ChangeLog
This adds an explicit drain.  Should Expect.close() do it internally?

2007-02-09  Andrew Cagney  <cagney@redhat.com>

        * TestFcore.java: Enable all tests.
        (tearDown): Add call to Signal.drain of Sig.CHLD.

Index: frysk-imports/frysk/sys/ChangeLog
2007-02-09  Andrew Cagney  <cagney@redhat.com>

        * Signal.java (drain(Sig)): Declare.
        * cni/Signal.cxx (drain): Define.