From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 7 23:20:18 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CC9D2E56 for ; Mon, 7 Jul 2014 23:20:18 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B3D722C50 for ; Mon, 7 Jul 2014 23:20:18 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s67NKIYm087655 for ; Tue, 8 Jul 2014 00:20:18 +0100 (BST) (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 191019] pgrep/pkill -j testcases fail on 11-CURRENT Date: Mon, 07 Jul 2014 23:20:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yaneurabeya@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2014 23:20:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191019 --- Comment #4 from yaneurabeya@gmail.com --- Adding more data to the pgrep failures, it's jail(8) that does the forking: 575 pid = fork(); 576 if (pid < 0) 577 err(1, "fork"); 578 if (pid > 0) { 579 if (bg || !add_proc(j, pid)) { 580 free(j->comline); 581 j->comline = NULL; 582 return 0; 583 } else { 584 paralimit--; 585 return 1; 586 } 587 } 588 if (bg) 589 setsid(); I fixed the issues with the pgrep -j testcases here: https://github.com/yaneurabeya/freebsd/commit/95191312475104e2e7afd7cdec1452a031500d33 I'm starting to wonder if this forking in jail(8) is at the cruxt of the issue with "none" as the pkill testcases work by killing the jail process, not the sleep process running in the jail. -- You are receiving this mail because: You are the assignee for the bug.