Mercurial > ecos
changeset 2997:b5c2e2c6f34a
* tests/pselect.c: Corrected return value of pthread_kill() to match
POSIX standard.
| author | sergeig |
|---|---|
| date | Sat, 15 Jan 2011 16:23:40 +0000 |
| parents | e84953768371 |
| children | f04f37d9c269 |
| files | packages/io/fileio/current/ChangeLog packages/io/fileio/current/tests/pselect.c |
| diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/io/fileio/current/ChangeLog +++ b/packages/io/fileio/current/ChangeLog @@ -1,3 +1,8 @@ +2010-02-08 Jay Foster <jay@systech.com> + + * tests/pselect.c: Corrected return value of pthread_kill() + to match POSIX standard. + 2008-11-18 Rutger Hofman <rutger@cs.vu.nl> * src/file.cxx: add a chmod() call, implemented by calling
--- a/packages/io/fileio/current/tests/pselect.c +++ b/packages/io/fileio/current/tests/pselect.c @@ -273,7 +273,8 @@ void *pthread_entry2( void *arg) nanosleep( &zzz, NULL ); err = pthread_kill( thread1, SIGUSR1 ); - if( err < 0 ) SHOW_RESULT( pthread_kill, err ); + if( err != 0 ) + diag_printf("INFO: pthread_kill() returned %d %s\n", err, strerror(err)); sigusr1_sent++;
