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