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

PR rtems/652
	* src/signalsend.c: Return RTEMS_INVALID_NUMBER when sending an empty
	signal set.
This commit is contained in:
Joel Sherrill
2004-07-24 17:08:17 +00:00
parent e18303d997
commit 7feb6f9f65
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
* src/signalsend.c: Return RTEMS_INVALID_NUMBER when sending an empty
signal set.
2004-07-14 Joel Sherrill <joel@OARcorp.com> 2004-07-14 Joel Sherrill <joel@OARcorp.com>
PR 651/core PR 651/core

View File

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