From owner-svn-src-user@freebsd.org Tue Apr 3 18:33:04 2018 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5ABB9F75ABD for ; Tue, 3 Apr 2018 18:33:04 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E2F66BAD8; Tue, 3 Apr 2018 18:33:04 +0000 (UTC) (envelope-from glebius@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0919942F; Tue, 3 Apr 2018 18:33:04 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w33IX3sK082594; Tue, 3 Apr 2018 18:33:03 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w33IX3ef082593; Tue, 3 Apr 2018 18:33:03 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201804031833.w33IX3ef082593@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Tue, 3 Apr 2018 18:33:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r331932 - user/pho/stress2/misc X-SVN-Group: user X-SVN-Commit-Author: glebius X-SVN-Commit-Paths: user/pho/stress2/misc X-SVN-Commit-Revision: 331932 X-SVN-Commit-Repository: base 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.25 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: Tue, 03 Apr 2018 18:33:04 -0000 Author: glebius Date: Tue Apr 3 18:33:03 2018 New Revision: 331932 URL: https://svnweb.freebsd.org/changeset/base/331932 Log: Indentation fixups. No functional changes. Modified: user/pho/stress2/misc/sendfile.sh Modified: user/pho/stress2/misc/sendfile.sh ============================================================================== --- user/pho/stress2/misc/sendfile.sh Tue Apr 3 17:16:06 2018 (r331931) +++ user/pho/stress2/misc/sendfile.sh Tue Apr 3 18:33:03 2018 (r331932) @@ -110,16 +110,17 @@ reader(void) { t = 0; if ((buf = malloc(bufsize)) == NULL) - err(1, "malloc(%d), %s:%d", bufsize, __FILE__, __LINE__); + err(1, "malloc(%d), %s:%d", bufsize, __FILE__, __LINE__); if ((fd = open(outputFile, O_RDWR | O_CREAT | O_TRUNC, 0640)) == -1) - err(1, "open(%s)", outputFile); + err(1, "open(%s)", outputFile); for (;;) { if ((n = read(msgsock, buf, bufsize)) < 0) err(1, "read(), %s:%d", __FILE__, __LINE__); t += n; - if (n == 0) break; + if (n == 0) + break; if ((write(fd, buf, n)) != n) err(1, "write"); @@ -152,9 +153,10 @@ writer(void) { #if 1 /* livelock trigger */ size = getpagesize() -4; - if (setsockopt(tcpsock, - SOL_SOCKET, SO_SNDBUF, (void *)&size, sizeof(size)) < 0) - err(1, "setsockopt(SO_SNDBUF), %s:%d", __FILE__, __LINE__); + if (setsockopt(tcpsock, SOL_SOCKET, SO_SNDBUF, (void *)&size, + sizeof(size)) < 0) + err(1, "setsockopt(SO_SNDBUF), %s:%d", + __FILE__, __LINE__); #endif hostent = gethostbyname ("localhost"); @@ -194,8 +196,9 @@ main(int argc, char **argv) pid_t pid; if (argc != 4) { - fprintf(stderr, "Usage: %s 0) { reader(); kill(pid, SIGINT);