X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fposix%2Ffunctions%2Fsignal%2Fsignal.c;h=d666b2400e7cbdb8bc4d9694c4f0246693a278ca;hb=1aba8d4e33b2a020709f81182709c7de7a728c76;hp=e07877d248f49e579d491121d220c8860bd0ded7;hpb=f473bc71fc1f79bf2ef549c768852c6216784e23;p=pdclib 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;