Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaG1K-0002xh-K3 for pgsql-committers@arkaria.postgresql.org; Wed, 04 Nov 2020 10:28:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kaG1J-0000hq-8x for pgsql-committers@arkaria.postgresql.org; Wed, 04 Nov 2020 10:28:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaG1I-0000hj-W4 for pgsql-committers@lists.postgresql.org; Wed, 04 Nov 2020 10:28:01 +0000 Received: from meesny.iki.fi ([2001:67c:2b0:1c1::201]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaG1E-0001AK-Kk for pgsql-committers@lists.postgresql.org; Wed, 04 Nov 2020 10:28:00 +0000 Received: from [192.168.1.113] (dsl-hkibng22-54faa4-119.dhcp.inet.fi [84.250.164.119]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by meesny.iki.fi (Postfix) with ESMTPSA id A0F6020240; Wed, 4 Nov 2020 12:27:53 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1604485673; 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: in-reply-to:in-reply-to:references:references; bh=/DfWXbju2FggjfRCZHCvgDYevMnOEM5UgBCXdMe1W6A=; b=DoxQVvJjgw2zHSdt406mpLb1lBsciZFa72cXhquP5IEjPIWDdnoTqEFyTJmpOFHlKAfbwd G95gJPLQJGFy+IJFqMhrZEx5hZP8VYG9mxCGjHInKKmIw5fgwhab0R6bJecwRvG1RDNJ5N bCLQxKlYnnoVQImbbswG0vAV+UwaTag= Subject: Re: pgsql: Get rid of the dedicated latch for signaling the startup process To: Fujii Masao , pgsql-committers@lists.postgresql.org References: From: Heikki Linnakangas Message-ID: <5c1f8a85-747c-7bf9-241e-dd467d8a3586@iki.fi> Date: Wed, 4 Nov 2020 12:27:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1604485673; 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: in-reply-to:in-reply-to:references:references; bh=/DfWXbju2FggjfRCZHCvgDYevMnOEM5UgBCXdMe1W6A=; b=Y71tenoFHNevkcav/qjr+3+UOZ1gUdxsetx9S4uC7eNKJBu3uhfo2/FJBQVvvXUzZ1UXm7 RveUqliP1F6YqcqQtm2uR2op5M0A1ua7CzZow2MZt7OKcnYF2rEY2vYmaBf2fDjFBosJKx bLpesiM5yxkD3PZl3z5KGEoMYd0q1JM= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1604485673; a=rsa-sha256; cv=none; b=Cdh+z2CQCWndvAZuhygCl36TN49AEywFDAtMa5xfgAfNTJIwIDEzF+uH2tt+K0+J+7+rby THKaV4vOK9OI6Nsm0Pzu4mOQgaDBAK4M9wFNMxRGNvbsE3lnz3bF6unZ4wjbCtpb7dzVEt 3bLxfTDRd2qfq63F/O/jjgSG0jYIBdE= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 04/11/2020 09:44, Fujii Masao wrote: > Get rid of the dedicated latch for signaling the startup process. > > This commit gets rid of the dedicated latch for signaling the startup > process in favor of using its procLatch, since that comports better > with possible generic signal handlers using that latch. > > Commit 1e53fe0e70 changed background processes so that they use standard > SIGHUP handler. Like that, this commit also makes the startup process use > standard SIGHUP handler to simplify the code. This seems to have made buildfarm member 'elver' to segfault. I've got a hunch that setting recoveryWakeupLatch to NULL, when WakeupRecovery() doesn't check for NULL, is not OK. It's surprising that we're only seeing this on 'elver', though. - Heikki