Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id D06C4F916DA for ; Thu, 26 Apr 2012 22:23:48 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SNZuV-0007fn-DV for pgsql-bugs@postgresql.org; Fri, 27 Apr 2012 01:23:48 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q3R1NUBX019447; Thu, 26 Apr 2012 21:23:31 -0400 (EDT) To: Josh Berkus cc: pgsql-bugs@postgresql.org Subject: Re: log_collector doesn't respond to reloads In-reply-to: <4F99F24A.3030507@agliodbs.com> References: <4F99E37E.30904@agliodbs.com> <18699.1335487841@sss.pgh.pa.us> <4F99F24A.3030507@agliodbs.com> Comments: In-reply-to Josh Berkus message dated "Thu, 26 Apr 2012 18:11:38 -0700" Date: Thu, 26 Apr 2012 21:23:30 -0400 Message-ID: <19446.1335489810@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/172 X-Sequence-Number: 32923 Josh Berkus writes: > On 4/26/12 5:50 PM, Tom Lane wrote: >> check the process's signal masks like this: >> grep ^Sig /proc/NNNN/status >> where NNNN is the logging collector's PID. Could we see that? > SigQ: 0/399360 > SigPnd: 0000000000000000 > SigBlk: 0000000000000000 > SigIgn: 0000000001007806 > SigCgt: 0000000000000201 Hm, I'm not sure what SigQ is, but the other values match what I see for a logging collector process on my Fedora 16 box ... and that process responds to SIGHUP just fine. (I believe the rightmost bit of these masks corresponds to SIGHUP, so this is saying the process is catching SIGHUP and not currently blocking it, which is what it should be.) Do you want to try attaching to the collector with a debugger and seeing if it ever gets into the "if (got_SIGHUP)" block in SysLoggerMain? regards, tom lane