From owner-svn-src-user@FreeBSD.ORG Sun Jan 25 14:32:49 2015 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59F72647; Sun, 25 Jan 2015 14:32:49 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 46032C19; Sun, 25 Jan 2015 14:32:49 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t0PEWnSx001903; Sun, 25 Jan 2015 14:32:49 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t0PEWnOR001902; Sun, 25 Jan 2015 14:32:49 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201501251432.t0PEWnOR001902@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Sun, 25 Jan 2015 14:32:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r277702 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2015 14:32:49 -0000 Author: pho Date: Sun Jan 25 14:32:48 2015 New Revision: 277702 URL: https://svnweb.freebsd.org/changeset/base/277702 Log: Code cleanup. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/core.sh Modified: user/pho/stress2/misc/core.sh ============================================================================== --- user/pho/stress2/misc/core.sh Sun Jan 25 14:31:44 2015 (r277701) +++ user/pho/stress2/misc/core.sh Sun Jan 25 14:32:48 2015 (r277702) @@ -52,30 +52,28 @@ done rm -f core exit EOF -#include +#include #include -#include #include #include +#include #include -#include +#include #define SIZ 10*1024*1024 int main(int argc, char **argv) { - char *cp = 0; + char *cp; if ((cp = malloc(SIZ)) == NULL) err(1, "Could not malloc 10Mb!"); memset(cp, 1, SIZ); -// printf("sleep %d\n", (120 - (time(NULL) % 120))); fflush(stdout); sleep(120 - (time(NULL) % 120)); raise(SIGSEGV); -// printf(".\n"); return (0); }