X-Git-Url: http://nitlanguage.org diff --git a/src/nc b/src/nc index 9672e88..a05d74e 100755 --- a/src/nc +++ b/src/nc @@ -17,13 +17,7 @@ NITC="../c_src/nitc" NITCOPTS="-v -W" -CSRC=$( (cd ../c_src; pwd) ) - -trap_action() { - test -n $sub_command && kill $sub_command - test -e $pipe && rm -f $pipe - exit 1 -} +CSRC=$` (cd ../c_src; pwd) ` name=`basename $0` case $name in @@ -37,15 +31,5 @@ esac ./git-gen-version.sh "$name" -trap trap_action INT TERM echo ${NITC} ${NITCOPTS} ${opts} "$@" -pipe=$(mktemp nc.stderr.XXXXX) -rm "$pipe" -mkfifo "$pipe" -./showerr.sh <"$pipe" & -sub_command=$! -${NITC} ${NITCOPTS} ${opts} "$@" 2>"$pipe" -err=$? -rm "$pipe" -wait -exit $err +${NITC} ${NITCOPTS} ${opts} "$@"