projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1. Do some range checking for spots and WWV in the future (got a WWV for Oct
[spider.git]
/
cmd
/
connect.pl
diff --git
a/cmd/connect.pl
b/cmd/connect.pl
index ed6ba9a07a8286dbfd622bc7397af452be741df1..df9a42389c73dc38400c0b8f4b12dd3904855da0 100644
(file)
--- a/
cmd/connect.pl
+++ b/
cmd/connect.pl
@@
-18,11
+18,14
@@
if (defined $pid) {
if (!$pid) {
# in child, unset warnings, disable debugging and general clean up from us
$^W = 0;
if (!$pid) {
# in child, unset warnings, disable debugging and general clean up from us
$^W = 0;
+ $SIG{HUP} = 'IGNORE';
eval "{ package DB; sub DB {} }";
alarm(0);
eval "{ package DB; sub DB {} }";
alarm(0);
+ DXChannel::closeall();
$SIG{CHLD} = $SIG{TERM} = $SIG{INT} = $SIG{__WARN__} = 'DEFAULT';
exec $prog, $call, 'connect';
} else {
$SIG{CHLD} = $SIG{TERM} = $SIG{INT} = $SIG{__WARN__} = 'DEFAULT';
exec $prog, $call, 'connect';
} else {
+ sleep(1); # do a coordination
return(1, $self->msg('constart', $call));
}
}
return(1, $self->msg('constart', $call));
}
}