X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_THREADED,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <502DC0B8.9020406@dancol.org> Date: Thu, 16 Aug 2012 20:55:36 -0700 From: Daniel Colascione User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Another sigwaitinfo problem (with testcase) References: <502B3567 DOT 9090808 AT dancol DOT org> <20120816184348 DOT GA16945 AT ednor DOT casa DOT cgf DOT cx> <502DBFC3 DOT 9080707 AT dancol DOT org> In-Reply-To: <502DBFC3.9080707@dancol.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC279F0A56BD41AB9BB8468F0" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enigC279F0A56BD41AB9BB8468F0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 8/16/2012 8:51 PM, Daniel Colascione wrote: > On 8/16/2012 11:43 AM, Christopher Faylor wrote: >> On Tue, Aug 14, 2012 at 10:36:39PM -0700, Daniel Colascione wrote: >>> When run on a Linux machine, this program starts up and blocks on sigwa= itinfo. >>> You can suspend and resume the program using usual job control faciliti= es, and >>> on SIGINT, the program prints a message and exits. When the program res= umes >>> after being stopped, it prints "resumed". >>> >>> With the 2012-08-07 Cygwin snapshot, this program prints "resumed" imme= diately >>> after receiving SIGTSTP, then fails to respond to any signal, even sign= als not >>> in the blocked set. A simpler test program that just calls "raise (SIGS= TOP)" >>> property stops itself before resuming execution. >> >> This should be fixed in the latest snapshot. >> >> Thanks for the test case. >=20 > Thanks for the fix. It's incomplete, though. Previously, C-z would make t= he > program print "resumed", then become insensitive the signals present in > waitmask. With the 2012-08-16 snapshot, C-z stops the program, but on > resumption, it doesn't print "resumed". Instead, on resumption, the progr= am > enters the same signal-insensitive state it did with the 2012-08-07 snaps= hot. >=20 More odd behavior under the 2012-08-16 snapshot: 1) Start vim 2) Hit C-z 3) Run "fg" 4) Observe that vim doesn't reappear. Rather, nothing happens, until... 5) C-c 6) vim now redisplays and accepts input --------------enigC279F0A56BD41AB9BB8468F0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAtwLgACgkQ17c2LVA10Vtg6gCgg/DRFygc4H2jbEXQkkuogmuR A/EAoJQ5ateSeGYm5AKt4LVn6Zqc/cmr =KPoL -----END PGP SIGNATURE----- --------------enigC279F0A56BD41AB9BB8468F0--