summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc_r/uthread/uthread_exit.c4
-rw-r--r--lib/libpthread/uthread/uthread_exit.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_exit.c b/lib/libc_r/uthread/uthread_exit.c
index fdd0bdd4d7c..aba20d5cee2 100644
--- a/lib/libc_r/uthread/uthread_exit.c
+++ b/lib/libc_r/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: */
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: */