Fix an PIC32 error in scheduling of signal handlers

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4229 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2011-12-26 16:24:43 +00:00
parent 49a51cb0f1
commit 8f88c268c2
10 changed files with 50 additions and 32 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
/************************************************************************
* sched/pthread_kill.c
*
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
* Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -83,11 +83,11 @@ int pthread_kill(pthread_t thread, int signo)
{
int ret;
*get_errno_ptr() = EINVAL;
set_errno(EINVAL);
ret = kill((pid_t)thread, signo);
if (ret != OK)
{
ret = *get_errno_ptr();
ret = get_errno();
}
return ret;
}