diff options
author | David Leonard <d@cvs.openbsd.org> | 1999-06-14 23:23:41 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1999-06-14 23:23:41 +0000 |
commit | 2f5d3571146c5577b8f5205f4e7b1cc6bf5795e1 (patch) | |
tree | 65dc410190a4971c8634aae880c4b4d4d6f7e881 /lib/libpthread | |
parent | 825847a569cddd252421555c287d4a363580384e (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.c | 4 |
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: */ |