SHA256
1
0
forked from pool/x3270
x3270/mknod.patch
OBS User autobuild 884a97c9f0 Accepting request 24468 from Base:System
Copy from Base:System/x3270 based on submit request 24468 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/24468
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/x3270?expand=0&rev=8
2009-11-16 15:07:39 +00:00

35 lines
931 B
Diff

Index: x3270-3.3/Examples/peer_script.bash
===================================================================
--- x3270-3.3/Examples/peer_script.bash.orig
+++ x3270-3.3/Examples/peer_script.bash
@@ -60,9 +60,9 @@ ip=/tmp/ip.$$
op=/tmp/op.$$
rm -f $ip $op
trap "rm -f $ip $op" EXIT
-trap "exit" INT QUIT HUP TERM
-mknod $ip p
-mknod $op p
+trap "exit" INT QUIT HUP BUS PIPE TERM
+mknod $ip p || exit 1
+mknod $op p || exit 1
# Start x3270
x3270 -script -model 2 <$ip >$op &
Index: x3270-3.3/Examples/peer_script.sh
===================================================================
--- x3270-3.3/Examples/peer_script.sh.orig
+++ x3270-3.3/Examples/peer_script.sh
@@ -59,9 +59,9 @@ ip=/tmp/ip.$$
op=/tmp/op.$$
rm -f $ip $op
trap "rm -f $ip $op" 0
-trap "exit" 2 3 1 15
-mknod $ip p
-mknod $op p
+trap "exit" 2 3 1 7 13 15
+mknod $ip p || exit 1
+mknod $op p || exit 1
# Start x3270
x3270 -script -model 2 <$ip >$op &