* snapshot 20120724 sleep failure
@ 2012-07-25 19:52 marco atzeri
2012-07-25 22:22 ` Christopher Faylor
0 siblings, 1 reply; 4+ messages in thread
From: marco atzeri @ 2012-07-25 19:52 UTC (permalink / raw)
To: cygwin
on 1.7.17s(0.262/5/3) 20120724
autoconf test for sleep never completes
checking whether sleep is declared... yes
checking for working sleep...
on 1.7.16 the test take 1 second
-----------------------------
#include <errno.h>
#include <unistd.h>
#include <signal.h>
static void
handle_alarm (int sig)
{
if (sig != SIGALRM)
_exit (2);
}
int
main ()
{
/* Failure to compile this test due to missing alarm is okay,
since all such platforms (mingw) also lack sleep. */
unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
unsigned int remaining;
signal (SIGALRM, handle_alarm);
alarm (1);
remaining = sleep (pentecost);
if (remaining > pentecost)
return 3;
if (remaining <= pentecost - 10)
return 4;
return 0;
;
return 0;
}
----------------------------------
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: snapshot 20120724 sleep failure
2012-07-25 19:52 snapshot 20120724 sleep failure marco atzeri
@ 2012-07-25 22:22 ` Christopher Faylor
2012-07-26 15:58 ` marco atzeri
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Faylor @ 2012-07-25 22:22 UTC (permalink / raw)
To: cygwin
On Wed, Jul 25, 2012 at 09:52:36PM +0200, marco atzeri wrote:
>on 1.7.17s(0.262/5/3) 20120724
>
>autoconf test for sleep never completes
>
>checking whether sleep is declared... yes
>checking for working sleep...
>
>on 1.7.16 the test take 1 second
Should be fixed in the upcoming snapshot.
Thanks for the STC.
cgf
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: snapshot 20120724 sleep failure
2012-07-25 22:22 ` Christopher Faylor
@ 2012-07-26 15:58 ` marco atzeri
2012-07-30 4:50 ` Christopher Faylor
0 siblings, 1 reply; 4+ messages in thread
From: marco atzeri @ 2012-07-26 15:58 UTC (permalink / raw)
To: cygwin
On 7/26/2012 12:22 AM, Christopher Faylor wrote:
> On Wed, Jul 25, 2012 at 09:52:36PM +0200, marco atzeri wrote:
>> on 1.7.17s(0.262/5/3) 20120724
>>
>> autoconf test for sleep never completes
>>
>> checking whether sleep is declared... yes
>> checking for working sleep...
>>
>> on 1.7.16 the test take 1 second
>
> Should be fixed in the upcoming snapshot.
>
> Thanks for the STC.
>
> cgf
>
fixed on 20120725.
Unfortunately I noticed a different issue, not present in 1.7.16.
Running mc the program never rise and the terminal blanks.
If the process is killed the terminal output is a mess.
It seems some issue with tty control.
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: snapshot 20120724 sleep failure
2012-07-26 15:58 ` marco atzeri
@ 2012-07-30 4:50 ` Christopher Faylor
0 siblings, 0 replies; 4+ messages in thread
From: Christopher Faylor @ 2012-07-30 4:50 UTC (permalink / raw)
To: cygwin
On Thu, Jul 26, 2012 at 05:58:22PM +0200, marco atzeri wrote:
>On 7/26/2012 12:22 AM, Christopher Faylor wrote:
>> On Wed, Jul 25, 2012 at 09:52:36PM +0200, marco atzeri wrote:
>>> on 1.7.17s(0.262/5/3) 20120724
>>>
>>> autoconf test for sleep never completes
>>>
>>> checking whether sleep is declared... yes
>>> checking for working sleep...
>>>
>>> on 1.7.16 the test take 1 second
>>
>> Should be fixed in the upcoming snapshot.
>>
>> Thanks for the STC.
>>
>> cgf
>>
>
>fixed on 20120725.
>
>Unfortunately I noticed a different issue, not present in 1.7.16.
>Running mc the program never rise and the terminal blanks.
>If the process is killed the terminal output is a mess.
>
>It seems some issue with tty control.
Sorta.
mc plays with STOP signals generated when a process is not the
leader of a tty process group. I'm astounded that I had this
working well enough to satisfy mc in the past but I definitely
broke it now.
It should be fixed in the latest snapshot.
Thanks for the heads up. There are a lot of signal changes in
1.7.17 snapshots and you found a problem with them.
cgf
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-30 4:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-25 19:52 snapshot 20120724 sleep failure marco atzeri
2012-07-25 22:22 ` Christopher Faylor
2012-07-26 15:58 ` marco atzeri
2012-07-30 4:50 ` Christopher Faylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).