diff options
author | 1999-06-14 23:23:40 +0000 | |
---|---|---|
committer | 1999-06-14 23:23:40 +0000 | |
commit | 332b209c93fcf0c1684bdd4cbfafa4fb5210595a (patch) | |
tree | 18c83cbbd4c5717cb59c06d5a24b7d7aae394e37 /lib/libpthread/uthread | |
parent | cvs skipped these files in the previous commit for mysterious reasons (diff) | |
download | wireguard-openbsd-332b209c93fcf0c1684bdd4cbfafa4fb5210595a.tar.xz wireguard-openbsd-332b209c93fcf0c1684bdd4cbfafa4fb5210595a.zip |
mention the process' pid in the debug message. greatly helps to debug problems when fork()ing
Diffstat (limited to 'lib/libpthread/uthread')
-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: */ |