Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
add missing nothrow @nogc to signal functions
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Sep 26, 2014
1 parent ec670e5 commit cb78abd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/core/sys/posix/signal.d
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ int sigsuspend(in sigset_t*);
int sigwait(in sigset_t*, int*);
*/

nothrow @nogc
{

version( linux )
{
enum SIG_HOLD = cast(sigfn_t2) 1;
Expand Down Expand Up @@ -1046,7 +1049,7 @@ else
{
static assert(false, "Unsupported platform");
}

}

//
// XOpen (XSI)
Expand Down Expand Up @@ -1882,6 +1885,9 @@ int sigtimedwait(in sigset_t*, siginfo_t*, in timespec*);
int sigwaitinfo(in sigset_t*, siginfo_t*);
*/

nothrow:
@nogc:

version( linux )
{
private enum __SIGEV_MAX_SIZE = 64;
Expand Down Expand Up @@ -1999,9 +2005,6 @@ int pthread_kill(pthread_t, int);
int pthread_sigmask(int, in sigset_t*, sigset_t*);
*/

nothrow:
@nogc:

version( linux )
{
int pthread_kill(pthread_t, int);
Expand Down

0 comments on commit cb78abd

Please sign in to comment.