summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1999-06-14 23:23:41 +0000
committerDavid Leonard <d@cvs.openbsd.org>1999-06-14 23:23:41 +0000
commit2f5d3571146c5577b8f5205f4e7b1cc6bf5795e1 (patch)
tree65dc410190a4971c8634aae880c4b4d4d6f7e881 /lib/libpthread
parent825847a569cddd252421555c287d4a363580384e (diff)
mention the process' pid in the debug message. greatly helps to debug problems when fork()ing
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_exit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/uthread/uthread_exit.c b/lib/libpthread/uthread/uthread_exit.c
index fdd0bdd4d7c..aba20d5cee2 100644
--- a/lib/libpthread/uthread/uthread_exit.c
+++ b/lib/libpthread/uthread/uthread_exit.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: uthread_exit.c,v 1.8 1999/05/26 00:18:23 d Exp $
+ * $OpenBSD: uthread_exit.c,v 1.9 1999/06/14 23:23:40 d Exp $
*/
#include <errno.h>
#include <unistd.h>
@@ -118,6 +118,8 @@ _thread_exit(const char *fname, int lineno, const char *string)
strlcat(s, fname, sizeof s);
strlcat(s, " (errno = ", sizeof s);
numlcat(s, errno, sizeof s);
+ strlcat(s, ", pid = ", sizeof s);
+ numlcat(s, _thread_sys_getpid(), sizeof s);
strlcat(s, ")\n", sizeof s);
/* Write the string to the standard error file descriptor: */