better diagnostic

This commit is contained in:
Jeff Hill
2002-10-30 02:10:19 +00:00
parent da9309e338
commit ccef3eddd2

View File

@@ -117,10 +117,11 @@ epicsShareFunc void epicsShareAPI epicsSignalRaiseSigUrg
( struct epicsThreadOSD * threadId )
{
int status;
status = pthread_kill ( SIGURG, epicsThreadGetPosixThreadIdSelf ( threadId ) );
pthread_t id = epicsThreadGetPosixThreadIdSelf ( threadId );
status = pthread_kill ( SIGURG, id );
if ( status ) {
errlogPrintf ( "failed to send signal to another thread because - errno=\"%s\"\n",
strerror ( errno ) );
errlogPrintf ( "Failed to send signal to thread. Status = \"%s\"\n",
strerror ( status ) );
}
}