X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=051332b03b75c8f85ff9e32d75dbe23755a25f0d;hb=942a06f9a573659489eb4a9185b73c4296cd31fd;hp=ce3c2d1f285202291e3fd8667fadcff62817b05f;hpb=2ca690592ea14e2ecd6783feed99ed7a8195162c;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index ce3c2d1f..051332b0 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -996,10 +996,11 @@ sub format_dx_spot my $t = ztime($_[2]); my $loc = ''; - my $clth = 30; + my $clth = 31 + $self->{width} - 80; # allow comment to grow according the screen width # --$clth if $self->{consort} eq 'local'; my $comment = substr (($_[3] || ''), 0, $clth); + $comment =~ s/\t/ /g; $comment .= ' ' x ($clth - (length($comment))); if ($self->{user}->wantgrid) { @@ -1339,7 +1340,12 @@ sub spawn_cmd $s .= ", args: " . join(', ', map { defined $_ ? qq{'$_'} : q{'undef'} } @$args) if $args && @$args; dbg($s); } - eval { @out = $cmdref->(@$args); }; + eval { + ++$self->{_in_sub_process}; + dbg "\$self->{_in_sub_process} = $self->{_in_sub_process}"; + @out = $cmdref->(@$args); + --$self->{_in_sub_process} if $self->{_in_sub_process} > 0; + }; if ($@) { DXDebug::dbgprintring(25); push @out, DXDebug::shortmess($@);