This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: Cygwin Perl 5.8.7 - Thread signalling gives errors in standard distribution
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin-apps at cygwin dot com
- Date: Tue, 23 Jan 2007 09:05:15 -0500
- Subject: Re: Cygwin Perl 5.8.7 - Thread signalling gives errors in standard distribution
- References: <45B60426.4000800@yahoo.de>
- Reply-to: cygwin-apps at cygwin dot com
On Tue, Jan 23, 2007 at 01:48:38PM +0100, Sebastian Weber wrote:
>Hi All,
>
>I just experienced the following problem: When using the normal perl
>packaged with Cygwin (v5.8.7 built for cygwin-thread-multi-64int) and
>trying thread signalling with threads->kill(), I get an error.
>For example the following script:
>
> use threads;
> sub thr_func
> {
> $SIG{'KILL'} = sub { die("Thread killed\n"); };
> while (1) {}
> }
>
> my $thr = threads->create('thr_func');
> $thr->kill('KILL')->detach();
>
>Errors out with:
>Can't locate auto/threads/kill.al in @INC (@INC contains: ...) at
>./test.pl line 22
>A thread exited while 2 threads were running.
>
>After installing the newest threads module from CPAN (v1.57,
>http://search.cpan.org/~jdhedden/threads-1.57/), everything works fine.
>I believe, the cygwin distribution still uses an outdated threads
>module. Has anybody else experienced this problem?
This isn't a bug-reporting mailing list. Please use the cygwin lists to report
problems with cygwin applications.
cgf