Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!gatech!emory!edgar
From: edgar@mathcs.emory.edu (Edgar Leon)
Newsgroups: comp.unix.aux
Subject: Re: panic: do_bio: write count < 0
Message-ID: <4389@emory.mathcs.emory.edu>
Date: 29 Sep 89 22:39:49 GMT
References: <4374@emory.mathcs.emory.edu> <1471@anucsd.oz>
Organization: Math & Computer Science, Emory University, Atlanta, GA
Lines: 49

In article <1471@anucsd.oz>, drew@anucsd.oz (Drew Corrigan) writes:
> in article <4374@emory.mathcs.emory.edu>, km@mathcs.emory.edu (Ken Mandelberg) 
> says:
> > 
> > There is an NFS bug in A/UX 1.1 that causes a panic
> > [...]
> > Unisoft Pascal Users: The work around is to use a symbolic 
> >        link to prelink the .s file onto /tmp and avoid the
> >        problem. We have a front end shell script to do this
> >        if anyone needs it.
>  
>  
> If you could mail/post the shell script it would be further appreciated.

The script follows, please note that gpc was moved to gpc.orig
and that we use ksh.

*************************************************************


#! /bin/ksh

# script to avoid panics caused by gpc
# Edgar Leon  9/25/89

tmplink () {
  if [ ! -f $PFILE ]; then
    echo $PFILE does not exist
    rm -f $RMPFILE $RMTMP
    exit 1
  fi

  PFILE=`basename $PFILE '.p' `\.s
  RMPFILE=$RMPFILE" "$PFILE
  TMPFILE=/tmp/`whoami`$RANDOM
  RMTMP=$RMTMP" "$TMPFILE
  rm -f $PFILE
  ln -s $TMPFILE  ./$PFILE 
}

for i in $*
do
  case $i in
    *.p)  PFILE=$i; tmplink ;;
    esac
done

/usr/local/bin/gpc.orig $*
rm -f $RMPFILE $RMTMP