Bug 4004 - frysk.expunit.Expect doesn't consume sigchlds
Summary: frysk.expunit.Expect doesn't consume sigchlds
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 2234 2243 2244
  Show dependency treegraph
 
Reported: 2007-02-08 02:23 UTC by Andrew Cagney
Modified: 2007-02-09 17:47 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.