Bug 2392 - frysk-core/TestRunner leaves stray funit-child processes
Summary: frysk-core/TestRunner leaves stray funit-child processes
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 2081 2234
  Show dependency treegraph
 
Reported: 2006-02-23 23:43 UTC by Andrew Cagney
Modified: 2006-02-23 23:45 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 2006-02-23 23:43:32 UTC
frysk's core's testsuite leaves stray funit-child processes (not all are killed
or exit).

This can be seen with:

$ ./TestRunner frysk.proc.TestRefresh
$ pgrep child | wc -l
4
$
Comment 1 Andrew Cagney 2006-02-23 23:45:52 UTC
The funit-child process wasn't setting the kill-me alarm in sub-processes.  This
both fixes that and shortens those processes lifetime.

Index: frysk-core/frysk/pkglibexecdir/ChangeLog
2006-02-23  Andrew Cagney  <cagney@redhat.com>

        * funit-child.c (main, server, main_alarm): Add global variable
        main_alarm.  Move alarm call to server function, all new processes
        get an alarm.

Index: frysk-core/frysk/proc/ChangeLog
2006-02-23  Andrew Cagney  <cagney@redhat.com>

        * TestLib.java (Child): Add static .sleepTime member.  Pass to
        funit-child.  Reduce sleep-time to 10, from 20 seconds.