RE: Having trouble porting an application to MS-Windows



-----Original Message-----
From: Chas Owens [mailto:chas.owens@xxxxxxxxx]
Sent: Thursday, June 14, 2007 12:10 PM
To: Bob McConnell
Cc: beginners@xxxxxxxx
Subject: Re: Having trouble porting an application to MS-Windows

On 6/14/07, Chas Owens <chas.owens@xxxxxxxxx> wrote:
On 6/14/07, Bob McConnell <rvm@xxxxxxxxx> wrote:
In "perlport - Writing portable Perl" in the Alphabetic
list of Perl
Functions:

alarm SECONDS
alarm
Not implemented. (Win32)

I couldn't find anything in the ActiveState release notes that
contradicted that.
snip
the latest version of ActiveState Perl on Windows XP works.
snip

Are you using the latest version of ActiveState Perl? I
installed the
latest version this morning to test the code I sent and when I run

perldoc -T perlport | find /i alarm

I get not output. The first three functions listed are -X,
atan2, and binmode.


In fact, the reference to alarm drops out of perlport in version 5.8.3
(released in 2004).

from Perl 5.8.3's Changes file
[ 21895]
alarm() is now implemented on Win32.

I am stuck on 5.8.0 at the moment due to compatability issues with some
database schema release management tools we use.

Assuming I can update to ActivePerl 5.8.8.820, if I set an alarm in one
forked process (thread?) before calling sysread() or sleep() on Win32,
will the same process receive the wakeup? Can I also send it a signal to
wake it up from another process? For the next step in this project I
have to split send and receive into two threads in order to handle a
full duplex connection. The ACK/NAK can be embedded anywhere in the
incoming data stream.

Bob McConnell
.



Relevant Pages