2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com>

* psxmsgq04/init.c: Add call to mq_unlink.
This commit is contained in:
Joel Sherrill
2009-07-29 20:27:27 +00:00
parent 59efe76bbf
commit 0376d08fa7
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxmsgq04/init.c: Add call to mq_unlink.
2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add shell of new test.

View File

@@ -39,6 +39,12 @@ void *POSIX_Init(
perror( "mq_open failed" );
assert( Queue != (-1) );
puts( "Init - Unlink message queue" );
sc = mq_unlink( "Queue" );
if ( sc != 0 )
perror( "mq_unlink failed" );
assert( sc == 0 );
puts( "Init - Close message queue" );
sc = mq_close( Queue );
if ( sc != 0 )