Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/regress/sys/kern/lockf make the parent kill off it's childre...



details:   https://anonhg.NetBSD.org/src/rev/219c9b9b240e
branches:  trunk
changeset: 495513:219c9b9b240e
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Jul 30 08:48:31 2000 +0000

description:
make the parent kill off it's children after it's main loop is finished.
This solves problem reported privately by Thomas Klausner, where the
regress test would take very very long to complete.

diffstat:

 regress/sys/kern/lockf/lockf.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 742431b1a076 -r 219c9b9b240e regress/sys/kern/lockf/lockf.c
--- a/regress/sys/kern/lockf/lockf.c    Sun Jul 30 08:36:06 2000 +0000
+++ b/regress/sys/kern/lockf/lockf.c    Sun Jul 30 08:48:31 2000 +0000
@@ -140,6 +140,7 @@
        for (i=0; i<nprocs; i++) {
                printf("reap %d: ", i);
                fflush(stdout);
+               kill(pid[i], SIGINT);
                waitpid(pid[i], &status, 0);
                printf(" status %d\n", status);
        }



Home | Main Index | Thread Index | Old Index