nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b15f0
)
tools: return value of nitc for nc
author
Jean-Sebastien Gelinas
<calestar@gmail.com>
Thu, 30 Jul 2009 19:54:10 +0000
(15:54 -0400)
committer
Jean Privat
<jean@pryen.org>
Thu, 30 Jul 2009 20:04:51 +0000
(16:04 -0400)
Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>
src/nc
patch
|
blob
|
history
diff --git
a/src/nc
b/src/nc
index
2b529f7
..
80e181a
100755
(executable)
--- a/
src/nc
+++ b/
src/nc
@@
-34,6
+34,8
@@
k=$(mktemp nc.stderr.XXXXX)
rm "$k"
trap "rm -f $k; exit 1" INT TERM
mkfifo "$k"
-${NITC} ${NITCOPTS} ${opts} "$@" 2>"$k" &
-./showerr.sh <"$k"
+./showerr.sh <"$k" &
+${NITC} ${NITCOPTS} ${opts} "$@" 2>"$k"
+err=$?
rm "$k"
+exit $err