projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1. Various detail changes to remove some more warning with -w on
[spider.git]
/
cmd
/
connect.pl
diff --git
a/cmd/connect.pl
b/cmd/connect.pl
index e1263887d96e99fd0fe00b6a82402054bf4cdb5f..ed6ba9a07a8286dbfd622bc7397af452be741df1 100644
(file)
--- a/
cmd/connect.pl
+++ b/
cmd/connect.pl
@@
-7,7
+7,7
@@
my $lccall = lc $call;
return (0) if $self->priv < 8;
return (1, $self->msg('e6')) unless $call gt ' ';
return (0) if $self->priv < 8;
return (1, $self->msg('e6')) unless $call gt ' ';
-return (1, $self->msg('already', $call)) if DXChannel
::
get($call);
+return (1, $self->msg('already', $call)) if DXChannel
->
get($call);
return (1, $self->msg('conscript', $lccall)) unless -e "$main::root/connect/$lccall";
my $prog = "$main::root/local/client.pl";
return (1, $self->msg('conscript', $lccall)) unless -e "$main::root/connect/$lccall";
my $prog = "$main::root/local/client.pl";
@@
-16,7
+16,11
@@
$prog = "$main::root/perl/client.pl" if ! -e $prog;
my $pid = fork();
if (defined $pid) {
if (!$pid) {
my $pid = fork();
if (defined $pid) {
if (!$pid) {
- # in child
+ # in child, unset warnings, disable debugging and general clean up from us
+ $^W = 0;
+ eval "{ package DB; sub DB {} }";
+ alarm(0);
+ $SIG{CHLD} = $SIG{TERM} = $SIG{INT} = $SIG{__WARN__} = 'DEFAULT';
exec $prog, $call, 'connect';
} else {
return(1, $self->msg('constart', $call));
exec $prog, $call, 'connect';
} else {
return(1, $self->msg('constart', $call));