Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 1995 17:57:38 -0400 (EDT)
From:      John Capo <jc@irbs.com>
To:        freebsd-bugs@freebsd.org
Subject:   Shell bug
Message-ID:  <199509202157.RAA08702@irbs.irbs.com>

next in thread | raw e-mail | index | archive | help
This is a simplified fragment from innwatch, part of innd.

#! /bin/sh

set -x

while { sleep 1 & wait ; } ; do

    exec 0<foo

    while read line ; do
    i=1
    done

done

This is foo, the input file.

!!! df -i . | awk 'NR == 2 { print $3 }' ! lt ! 200 ! throttle ! No space (spool inodes)


This will `Memory fault' on the fifth iteration:

    while { sleep 1 & wait ; } ; do
    ...

It appears that { anything & wait ; } is a problem.

Fails on -current, -stable, and 1.1.5.1.  Works with bash and
-current, SunOS 4.0, Irix 5.3

John Capo
IRBS Engineering




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509202157.RAA08702>