From 2a98af841e1155b1b7a33c64086f4357d18095f9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 29 May 1996 21:02:20 +0000 Subject: types.c: spacing psignal.c: kill recognizes SIGABRT and exits to prevent asserts from recursively occurring because kill was not implemented and asserted. --- c/src/exec/posix/src/psignal.c | 4 +++ c/src/exec/posix/src/types.c | 57 +++++++++++++++++++++--------------------- 2 files changed, 33 insertions(+), 28 deletions(-) (limited to 'c/src/exec/posix/src') diff --git a/c/src/exec/posix/src/psignal.c b/c/src/exec/posix/src/psignal.c index cac74021ad..9a43fc7c07 100644 --- a/c/src/exec/posix/src/psignal.c +++ b/c/src/exec/posix/src/psignal.c @@ -19,6 +19,10 @@ int kill( int sig ) { + /* SIGABRT comes from abort via assert */ + if ( sig == SIGABRT ) { + exit( 1 ); + } return POSIX_NOT_IMPLEMENTED(); } diff --git a/c/src/exec/posix/src/types.c b/c/src/exec/posix/src/types.c index 81a184c81a..647e0b7056 100644 --- a/c/src/exec/posix/src/types.c +++ b/c/src/exec/posix/src/types.c @@ -7,34 +7,6 @@ #include -/* - * TEMPORARY - */ - -#include - -int POSIX_MP_NOT_IMPLEMENTED() -{ - assert( 0 ); - return 0; -} - -int POSIX_BOTTOM_REACHED() -{ - assert( 0 ); - return 0; -} - -int POSIX_NOT_IMPLEMENTED() -{ - assert( 0 ); - return 0; -} - -/* - * END OF TEMPORARY - */ - /*PAGE * * 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83 @@ -195,3 +167,32 @@ int setpgid( { return POSIX_NOT_IMPLEMENTED(); } + +/* + * TEMPORARY + */ + +#include + +int POSIX_MP_NOT_IMPLEMENTED() +{ + assert( 0 ); + return 0; +} + +int POSIX_BOTTOM_REACHED() +{ + assert( 0 ); + return 0; +} + +int POSIX_NOT_IMPLEMENTED() +{ + assert( 0 ); + return 0; +} + +/* + * END OF TEMPORARY + */ + -- cgit v1.2.3