2004-07-24 Joel Sherrill <joel@OARcorp.com>

PR rtems/652
	* rtems/src/signalsend.c: Return RTEMS_INVALID_NUMBER when sending an
	empty signal set.
This commit is contained in:
Joel Sherrill
2004-07-24 17:09:42 +00:00
parent 6daca108ea
commit 69d2e69b5e
2 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
2004-07-24 Joel Sherrill <joel@OARcorp.com>
PR rtems/652
* rtems/src/signalsend.c: Return RTEMS_INVALID_NUMBER when sending an
empty signal set.
2004-07-14 Joel Sherrill <joel@OARcorp.com>
PR 650/rtems

View File

@@ -33,12 +33,12 @@
*
* Output parameters:
* RTEMS_SUCCESSFUL - if successful
* error code - if unsuccessful
* error code - if unsuccessful
*/
rtems_status_code rtems_signal_send(
Objects_Id id,
rtems_signal_set signal_set
Objects_Id id,
rtems_signal_set signal_set
)
{
register Thread_Control *the_thread;
@@ -46,6 +46,9 @@ rtems_status_code rtems_signal_send(
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
switch ( location ) {