From owner-svn-src-all@freebsd.org Sun Dec 8 21:08:35 2019 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0812A1BA192; Sun, 8 Dec 2019 21:08:35 +0000 (UTC) (envelope-from oshogbo.vx@gmail.com) Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47WJp96h6fz3N4d; Sun, 8 Dec 2019 21:08:33 +0000 (UTC) (envelope-from oshogbo.vx@gmail.com) Received: by mail-ed1-f66.google.com with SMTP id j17so10912620edp.3; Sun, 08 Dec 2019 13:08:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w0tZHRfWJrEeO4CnwrnhrhnYE8mHzeQUJ3EbPT6yr5U=; b=ZEDWw8MO0UjKcyaMCS2hNFEFCTO3k3K2uUdIdO6h1sddp3mE4S8LLnB6/CWmas0pLT 0a2B15WzIOvlz5bFzZBK5v+WphaOXHNameLjUsn7T9HVwlOW8jvf/fDWH2ku2ocx/E+2 lVL3Hq8bA2PMImOTXeLLHqJCMEwnZ9GaRvQby/2/sXCEpi0EFnk5ztP/orJdjQt1hNA2 YapQktMhPAaGiTJgOlSsvqnUwj3AfLKP/Uzf5tM0B7Y8h3dbx/Wfg9KafO48nlNNC5x7 pVLJOPgIxGQgBaM/yp31RwkxUUIgWlhvYDlE81SULVxKYDddmVd8FhXUQx3AG7eHWxj2 bfwQ== X-Gm-Message-State: APjAAAVAEoeGP6zFlz5wsnLYzNgsVal94O5e2II6SMq38FcBkabjbs/3 mdgGcE8CYN15ct2cuNL4F2XuD1PFc7ii4L9/WS6wT107 X-Google-Smtp-Source: APXvYqwS5MqQJTNCNakwojZSXPJVNek023NpW9XSg+x0L7gyB/UM8lgr7hO7QcQdKxhtoyVitJBr71tsqX23pgOtAWg= X-Received: by 2002:a50:d648:: with SMTP id c8mr28848881edj.20.1575839312020; Sun, 08 Dec 2019 13:08:32 -0800 (PST) MIME-Version: 1.0 References: <201911251833.xAPIXM9h040583@repo.freebsd.org> <82757e82-e26c-f92f-66cf-a03f22cffe9b@FreeBSD.org> In-Reply-To: <82757e82-e26c-f92f-66cf-a03f22cffe9b@FreeBSD.org> From: Mariusz Zaborski Date: Sun, 8 Dec 2019 22:08:22 +0100 Message-ID: Subject: Re: svn commit: r355097 - in head: sys/kern tests/sys/kern To: John Baldwin Cc: src-committers , svn-src-all , svn-src-head Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47WJp96h6fz3N4d X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of oshogbovx@gmail.com designates 209.85.208.66 as permitted sender) smtp.mailfrom=oshogbovx@gmail.com X-Spamd-Result: default: False [-3.94 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_NEQ_ENVFROM(0.00)[oshogbo@freebsd.org,oshogbovx@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-1.94)[ip: (-4.59), ipnet: 209.85.128.0/17(-3.14), asn: 15169(-1.92), country: US(-0.05)]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[66.208.85.209.list.dnswl.org : 127.0.5.0]; FORGED_SENDER(0.30)[oshogbo@freebsd.org,oshogbovx@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[66.208.85.209.rep.mailspike.net : 127.0.0.17]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Dec 2019 21:08:35 -0000 On Mon, 2 Dec 2019 at 18:55, John Baldwin wrote: > > On 11/25/19 10:33 AM, Mariusz Zaborski wrote: > > Author: oshogbo > > Date: Mon Nov 25 18:33:21 2019 > > New Revision: 355097 > > URL: https://svnweb.freebsd.org/changeset/base/355097 > > > > Log: > > procdesc: allow to collect status through wait(1) if process is traced > > > > The debugger like truss(1) depends on the wait(2) syscall. This syscall > > waits for ALL children. When it is waiting for ALL child's the children > > created by process descriptors are not returned. This behavior was > > introduced because we want to implement libraries which may pdfork(1). > > > > The behavior of process descriptor brakes truss(1) because it will > > not be able to collect the status of processes with process descriptors. > > > > To address this problem the status is returned to parent when the > > child is traced. While the process is traced the debugger is the new parent. > > In case the original parent and debugger are the same process it means the > > debugger explicitly used pdfork() to create the child. In that case the debugger > > should be using kqueue()/pdwait() instead of wait(). > > > > Add test case to verify that. The test case was implemented by markj@. > > Does this fix PR 201276? > > Also, what about PRs 220324 and 232679? Unfortunately, only partially. I still looking at some issues.