diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-18 05:11:02 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-18 05:11:02 +0000 |
commit | 9efbc0eb9ef0a7b1489f59143775f10b17cd372d (patch) | |
tree | 84263b579afe32eb948c63daa9bc428e100d1b19 /util.c | |
parent | dcdda58dd900ef44288e03991974d9c7ddb74710 (diff) | |
download | perl-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |