diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 1999-11-18 19:43:13 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 1999-11-18 19:43:13 +0000 |
commit | 17879f4750a2bc0d556c8cd1d0f6715b127d681a (patch) | |
tree | b5ad2e47489b8afa97dc5cd66aa36e3900da282e /cpukit/posix/src/mqueueunlink.c | |
parent | Added a routine to remove a semaphore name from its namespace. (diff) | |
download | rtems-17879f4750a2bc0d556c8cd1d0f6715b127d681a.tar.bz2 |
+ Debuged to the point that you could open, unlink and close a semaphore.
but all paths have not been checked, yet.
Diffstat (limited to 'cpukit/posix/src/mqueueunlink.c')
-rw-r--r-- | cpukit/posix/src/mqueueunlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/posix/src/mqueueunlink.c b/cpukit/posix/src/mqueueunlink.c index 4a884f7b82..421b91543c 100644 --- a/cpukit/posix/src/mqueueunlink.c +++ b/cpukit/posix/src/mqueueunlink.c @@ -43,8 +43,7 @@ int mq_unlink( Objects_Locations location; status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id ); - - if ( !status ) + if ( status != 0 ) set_errno_and_return_minus_one( status ); the_mq = _POSIX_Message_queue_Get( the_mq_id, &location ); |