This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

sig_send(): wait for sig_complete event failed...



I've just installed B20 (under NT4.0 SP3 on a Pentium PRO) and I get the
following problem with executing a shell script from cmd.exe...

d:\>: bash /bin/which which
[proc] c:\bin\sh.exe 1006 (0) sig_send: wait for sig_complete event failed, sig
20, rc -1, error 6
[proc] c:\bin\sh.exe 1009 (0) sig_send: wait for sig_complete event failed, sig
20, rc -1, error 6
[proc] c:\bin\sh.exe 1012 (0) sig_send: wait for sig_complete event failed, sig
20, rc -1, error 6
[proc] c:\bin\sh.exe 1015 (0) sig_send: wait for sig_complete event failed, sig
20, rc -1, error 6
/bin/which

d:\>

Executing the same thing in an emacs shell (using cmdproxy) just hangs with
100% CPU.  Executing the same command line from an interactive bash session
works OK.   "which" is the following shell script...

#!/bin/sh

all=0
showpath=0

while getopts ap c; do
   case $c in
   a) all=1;;
   p) showpath=1;;
   *) ;;
   esac
done

shift `expr $OPTIND - 1`

if [ $showpath = 1 ]; then
   echo $PATH | awk -F: '{for(i=1;i<=NF;i++)printf"%s\n",$i;}'
   exit 0
fi

xpath=`echo $PATH | sed -e 's/ /_un9likely_/g' | sed -e 's/:/ /g'`

for x in $*; do

#   cmd="`alias $x`"

#   if [ "$cmd" = "" ]; then
      cmd="$x"
#   else
#      echo "${x}:        aliased to $cmd"
#      cmd=`alias $x | awk '{print $1}'`
#   fi

   for p in $xpath; do
      p=`echo $p | sed -e 's/_un9likely_/ /g'`
      if [ -x "$p/${cmd}" ]; then
         echo $p/${cmd}
	 if [ $all = 0 ]; then
	    break
         fi
      fi
   done
done


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]