From owner-svn-src-head@freebsd.org Thu Jul 14 00:32:28 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0144B98E24; Thu, 14 Jul 2016 00:32:28 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A0ECD1DE6; Thu, 14 Jul 2016 00:32:28 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6E0WReu030777; Thu, 14 Jul 2016 00:32:27 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6E0WRaC030774; Thu, 14 Jul 2016 00:32:27 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201607140032.u6E0WRaC030774@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Thu, 14 Jul 2016 00:32:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r302792 - head/usr.bin/gcore X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2016 00:32:29 -0000 Author: markj Date: Thu Jul 14 00:32:27 2016 New Revision: 302792 URL: https://svnweb.freebsd.org/changeset/base/302792 Log: Remove gcore's -s option. It has no effect and is always implicitly set since ptrace(2) stops the target process. Modified: head/usr.bin/gcore/extern.h head/usr.bin/gcore/gcore.1 head/usr.bin/gcore/gcore.c Modified: head/usr.bin/gcore/extern.h ============================================================================== --- head/usr.bin/gcore/extern.h Thu Jul 14 00:26:57 2016 (r302791) +++ head/usr.bin/gcore/extern.h Thu Jul 14 00:32:27 2016 (r302792) @@ -31,7 +31,6 @@ */ #define PFLAGS_FULL 0x01 -#define PFLAGS_RESUME 0x02 struct dumpers { int (*ident)(int efd, pid_t pid, char *binfile); Modified: head/usr.bin/gcore/gcore.1 ============================================================================== --- head/usr.bin/gcore/gcore.1 Thu Jul 14 00:26:57 2016 (r302791) +++ head/usr.bin/gcore/gcore.1 Thu Jul 14 00:32:27 2016 (r302792) @@ -28,7 +28,7 @@ .\" @(#)gcore.1 8.2 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd July 14, 2010 +.Dd July 13, 2016 .Dt GCORE 1 .Os .Sh NAME @@ -37,7 +37,6 @@ .Sh SYNOPSIS .Nm .Op Fl f -.Op Fl s .Op Fl c Ar core .Op Ar executable .Ar pid @@ -66,15 +65,6 @@ behavior. As a result, this flag should only be used when the behavior of the application and any devices it has mapped is fully understood and any side effects can be controlled or tolerated. -.It Fl s -Stop the process while gathering the core image, and resume it -when done. -This guarantees that the resulting core dump will -be in a consistent state. -The process is resumed even if it was -already stopped. -The same effect can be achieved manually with -.Xr kill 1 . .El .Sh FILES .Bl -tag -width /var/log/messages -compact Modified: head/usr.bin/gcore/gcore.c ============================================================================== --- head/usr.bin/gcore/gcore.c Thu Jul 14 00:26:57 2016 (r302791) +++ head/usr.bin/gcore/gcore.c Thu Jul 14 00:32:27 2016 (r302792) @@ -87,7 +87,7 @@ main(int argc, char *argv[]) pflags = 0; corefile = NULL; - while ((ch = getopt(argc, argv, "c:fs")) != -1) { + while ((ch = getopt(argc, argv, "c:f")) != -1) { switch (ch) { case 'c': corefile = optarg; @@ -95,9 +95,6 @@ main(int argc, char *argv[]) case 'f': pflags |= PFLAGS_FULL; break; - case 's': - pflags |= PFLAGS_RESUME; - break; default: usage(); break;