From ccef3eddd2c236e5a64218fa9eff9121bd7405e1 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 30 Oct 2002 02:10:19 +0000 Subject: [PATCH] better diagnostic --- src/libCom/osi/os/posix/osdSignal.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libCom/osi/os/posix/osdSignal.c b/src/libCom/osi/os/posix/osdSignal.c index 2bcf2ec5c..e2e140705 100644 --- a/src/libCom/osi/os/posix/osdSignal.c +++ b/src/libCom/osi/os/posix/osdSignal.c @@ -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 ) ); } }