Changeset 91

Show
Ignore:
Timestamp:
10/18/06 17:19:24 (7 years ago)
Author:
max
Message:

Bugfix: When auto-restarting Shepherd, run with original options

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • shepherd

    r90 r91  
    5454 
    5555my $invoked = Cwd::realpath($0); 
     56my @options = @ARGV; 
    5657 
    5758# By default, Shepherd runs from ~/.shepherd/. If it's not run as a user, 
     
    11381139    if ($progtype eq "shepherd") { 
    11391140        print "\n*** Restarting ***\n\n"; 
    1140         exec("$ldir/$proggy"); 
     1141        exec("$ldir/$proggy @options"); 
    11411142        # This exits. 
    11421143    }