# Set an alarm on this block in case we run into problem talking to
# the spong server.
+ eval
{
local $SIG{'ALRM'} = sub { die; };
alarm(30);
undef $sock;
$ok = 1;
- }
+ alarm(0);
+ };
- alarm(0);
warn scalar(localtime) . " can't connect to spong server.\n" if ! $ok;
}
# Set an alarm on this block in case we run into problem talking to
# the spong server.
+ eval
{
local $SIG{'ALRM'} = sub { die; };
alarm(30);
undef $sock;
$ok = 1;
- }
+ alarm(0);
+ };
- alarm(0);
warn scalar(localtime) . " can't connect to spong server.\n" if ! $ok;
}
# Set an alarm on this block in case we run into problem talking to
# the spong server.
+ eval
{
local $SIG{'ALRM'} = sub { die; };
alarm(30);
undef $sock;
$ok = 1;
- }
+ alarm(0);
+ };
- alarm(0);
warn scalar(localtime) . " can't connect to spong server.\n" if ! $ok;
}