From nobody Thu Aug 10 19:51:42 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RMHcZ5ZnXz4q0wR; Thu, 10 Aug 2023 19:51:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RMHcZ4wVCz4Zg4; Thu, 10 Aug 2023 19:51:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691697102; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ja0PPbtwcwaoG+1OE/g8tGjdWzYfaSpxaHUgpTj6oBA=; b=u4esdD8Xmdz/I2371hHpQvx7iri47UvsTGoDNHNgLQpnybZlEgiZmx+BwUDQxsDoDO5dEY kQ7B3Nd0VSlhTVp1FUE/I6dCp+2qpME0vCIcLlglZDOuR0HhMpm2J9br/5oOCltYESgWY4 ITmx2LMmOhDqK1p7Vbetj8Um2So+7TriYx4poYVWBlRA+0TzsDj8Y0iR0CTJfD+Og7W+hT BApEFiYwaw7844nMdoCHTo3Qh5hNqYPfpDamnqmpCuxR11tVOphCCGc5sLJZFfSD46YnxB kuTlMBji4kuOvszeFGOf2z22SaA269D5bHPkthbvoJZp/Y3i6pxEwbF18NxXGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691697102; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ja0PPbtwcwaoG+1OE/g8tGjdWzYfaSpxaHUgpTj6oBA=; b=pIbdcM91GhNepT2cJ6VC8vA6gmMI4WmcwfiWrFYKIPCKw1vt5NXfd8FgZRNMFd66kulzY4 2pcFUjt4Qqa70r+9AzMSt/z19djb7KvPku27WgHL+3Hh+Aj+dXEgg1mTFVLKSiY4yrUeb4 bSN0Ok6iUoy/HvQxXIhAK0ZAoZFcqePjQVRVUN5d6/icEobrhAdNPeE70wTLVCWzi948se l9tfkG7ztcoMw+Tt1Tn3CEkSlfoUNa0OtVQ1lEPhtpXjGurI8atVZyiRs7RDmy2SUCgeab UebTGhSr6I2BUGFnwzTaj+OXXvgd587fsXDdfHN6WMzrSMsHzYc+Omy61Jng1Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691697102; a=rsa-sha256; cv=none; b=lsTXuM67eC+NwUnC/5Ou4hUzKWQaU5jXeSggtiQTL5RjbhbKYOFchUTbaTq2XdQAJNKhUe e4+1kTiFjR1oDxwqguiH+nVdrvA3wXWddG0pvs+wfrVmi7sZD+35OUSVb9C6Piv1nb/yNk eK2wrEnpOfo9KkECkyZyxXcUXAk7hsJqePxPfvy0UNB8opZBYhS+IOHPsGBeFKyi2hs1bd fHbz1MAjtAruPRrZxvoo5sW45XpwUeSMPEuCq9T9rOzqZYM3RqzCPbh8hiEy1r+n+qpJlK 7gXrW1vEGSJjCbADgo2RwHIB9dwort1H71DK4silQuxu+tkR5VTGtvu0ozlcqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RMHcZ40Fwz18QX; Thu, 10 Aug 2023 19:51:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37AJpgv7070649; Thu, 10 Aug 2023 19:51:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37AJpgud070646; Thu, 10 Aug 2023 19:51:42 GMT (envelope-from git) Date: Thu, 10 Aug 2023 19:51:42 GMT Message-Id: <202308101951.37AJpgud070646@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Rick Macklem Subject: git: 2409231121ba - main - mountd: Fix type of signal variable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2409231121ba6fc0ce5c16dc070b564c613c8fc5 Auto-Submitted: auto-generated The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=2409231121ba6fc0ce5c16dc070b564c613c8fc5 commit 2409231121ba6fc0ce5c16dc070b564c613c8fc5 Author: Rick Macklem AuthorDate: 2023-08-10 19:50:35 +0000 Commit: Rick Macklem CommitDate: 2023-08-10 19:50:35 +0000 mountd: Fix type of signal variable Without this patch got_sighup(), which is the SIGHUP handler, would set a variable of type int. This would appear to be incorrect, although it has worked reliably. This patch changes the type to "_Atomic(int)", which appears to be all that is needed to correct it. Reported by: pen@lysator.lui.se Reviewed by: theraven, karels (prev version), kevans (prev version) Differential Revision: https://reviews.freebsd.org/D41265 --- usr.sbin/mountd/mountd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 1924284bb93a..22dfcc3c1abb 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -290,7 +290,7 @@ static int resvport_only = 1; static int nhosts = 0; static int dir_only = 1; static int dolog = 0; -static int got_sighup = 0; +static _Atomic(int) got_sighup = 0; static int xcreated = 0; static char *svcport_str = NULL;