Bug 2392

Summary: frysk-core/TestRunner leaves stray funit-child processes
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2081, 2234    

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.