delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/25/10:58:04

From: eric AT globalnet DOT co DOT uk (Eric Barton)
Subject: sig_send(): wait for sig_complete event failed...
25 Nov 1998 10:58:04 -0800 :
Message-ID: <000001be180c$d8c3fe30$0281a8c0.cygnus.gnu-win32@ebpc.globalnet.co.uk>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019