summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-07-18 05:11:02 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-07-18 05:11:02 +0000
commit9efbc0eb9ef0a7b1489f59143775f10b17cd372d (patch)
tree84263b579afe32eb948c63daa9bc428e100d1b19 /util.c
parentdcdda58dd900ef44288e03991974d9c7ddb74710 (diff)
downloadperl-9efbc0eb9ef0a7b1489f59143775f10b17cd372d.tar.gz
display thread id in diagnostics (suggested by Dan Sugalski)
p4raw-id: //depot/perl@3696
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.c b/util.c
index f4857cf04f..6fa8d7f9fe 100644
--- a/util.c
+++ b/util.c
@@ -1416,6 +1416,9 @@ Perl_mess(pTHX_ const char *pat, va_list *args)
line_mode ? "line" : "chunk",
(long)IoLINES(GvIOp(PL_last_in_gv)));
}
+#ifdef USE_THREADS
+ sv_catpvf(sv, " thread %ld", thr->tid);
+#endif
sv_catpv(sv, PL_dirty ? dgd : ".\n");
}
return sv;