From owner-cvs-src@FreeBSD.ORG Sun Sep 26 06:50:15 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E91C916A4CE; Sun, 26 Sep 2004 06:50:15 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD69F43D2D; Sun, 26 Sep 2004 06:50:15 +0000 (GMT) (envelope-from deischen@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i8Q6oF94089931; Sun, 26 Sep 2004 06:50:15 GMT (envelope-from deischen@repoman.freebsd.org) Received: (from deischen@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i8Q6oFXn089930; Sun, 26 Sep 2004 06:50:15 GMT (envelope-from deischen) Message-Id: <200409260650.i8Q6oFXn089930@repoman.freebsd.org> From: Daniel Eischen Date: Sun, 26 Sep 2004 06:50:15 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libpthread pthread.mapsrc/lib/libpthread/thread Makefile.inc thr_execve.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2004 06:50:16 -0000 deischen 2004-09-26 06:50:15 UTC FreeBSD src repository Modified files: lib/libpthread pthread.map lib/libpthread/thread Makefile.inc Added files: lib/libpthread/thread thr_execve.c Log: Add a wrapper for execve(). The exec'd process must be started with the signal mask and pending signals of the calling thread. These are stored in userland in libpthread. There is a small race condition in this patch which could cause problems if a signal arrives after setting the (kernel) signal mask and before exec'ing. The thread's set of pending signals also are not yet installed in the exec'd process. Both of these will be corrected with the addition of a special syscall. Reported & Tested by: Joost Bekkers Reviewed by: julian, davidxu Revision Changes Path 1.13 +2 -0 src/lib/libpthread/pthread.map 1.49 +1 -0 src/lib/libpthread/thread/Makefile.inc 1.1 +68 -0 src/lib/libpthread/thread/thr_execve.c (new)