X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fposix%2Ffunctions%2Fsignal%2Fsignal.c;h=d666b2400e7cbdb8bc4d9694c4f0246693a278ca;hb=4286850c5d7c3df9d8bdc7470e4b77ca9b05edb6;hp=e07877d248f49e579d491121d220c8860bd0ded7;hpb=a38d56a6a13dbb89022b5448d2d5247f3f99ea41;p=pdclib.old diff --git a/platform/posix/functions/signal/signal.c b/platform/posix/functions/signal/signal.c index e07877d..d666b24 100644 --- a/platform/posix/functions/signal/signal.c +++ b/platform/posix/functions/signal/signal.c @@ -9,8 +9,8 @@ #include #ifndef REGTEST - #include +#include void (*_PDCLIB_sigabrt)( int ) = SIG_DFL; void (*_PDCLIB_sigfpe)( int ) = SIG_DFL; @@ -53,10 +53,7 @@ void (*signal( int sig, void (*func)( int ) ) )( int ) _PDCLIB_sigterm = func; break; default: - /* The standard calls for an unspecified "positive value". You - will probably want to define a specific value for this. - */ - _PDCLIB_errno = 1; + errno = EINVAL; return SIG_ERR; } return oldhandler;