public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e441b2f
)
exit with erno+1, because otherwise exit status is 0 with array bound error
author
ceriel
<none@none>
Mon, 14 Nov 1994 11:51:24 +0000
(11:51 +0000)
committer
ceriel
<none@none>
Mon, 14 Nov 1994 11:51:24 +0000
(11:51 +0000)
lang/m2/libm2/catch.c
patch
|
blob
|
history
lang/pc/libpc/catch.c
patch
|
blob
|
history
diff --git
a/lang/m2/libm2/catch.c
b/lang/m2/libm2/catch.c
index
1fd5cf8
..
76e8181
100644
(file)
--- a/
lang/m2/libm2/catch.c
+++ b/
lang/m2/libm2/catch.c
@@
-88,12
+88,12
@@
catch(trapno)
signal(__signo, SIG_DFL);
_cleanup();
kill(getpid(), __signo);
- _exit(trapno);
+ _exit(trapno
+1
);
}
#endif
if (trapno != M2_FORCH) {
_cleanup();
- _exit(trapno);
+ _exit(trapno
+1
);
}
SIG(catch);
}
diff --git
a/lang/pc/libpc/catch.c
b/lang/pc/libpc/catch.c
index
d100633
..
5396b4c
100644
(file)
--- a/
lang/pc/libpc/catch.c
+++ b/
lang/pc/libpc/catch.c
@@
-148,7
+148,7
@@
_catch(erno) unsigned erno; {
if (_write(2,q,(int)(p-q)) < 0)
;
}
- _exit(erno);
+ _exit(erno
+1
);
error:
_trp(erno);
}