Ignore:
Timestamp:
03/08/2008 07:57:27 (4 years ago)
Author:
chris
Message:

Kill running daemons using kill -f on Windows (cygwin) which kills
by Windows PID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/makebuildenv.pl.in

    r2202 r2209  
    409409                        print TESTFILE "#!/bin/sh\necho TEST: $module\n"; 
    410410 
    411                         if(-d "$module/testfiles") 
     411                        if (-d "$module/testfiles") 
     412                        { 
     413                                if ($target_windows) 
     414                                { 
     415                                print TESTFILE <<__E; 
     416echo Killing any running daemons... 
     417test -r testfiles/bbackupd.pid && /bin/kill -f `cat testfiles/bbackupd.pid` 
     418test -r testfiles/bbstored.pid && /bin/kill -f `cat testfiles/bbstored.pid` 
     419__E 
     420                        } 
     421                        else 
    412422                        { 
    413423                                print TESTFILE <<__E; 
     
    415425test -r testfiles/bbackupd.pid && kill `cat testfiles/bbackupd.pid` 
    416426test -r testfiles/bbstored.pid && kill `cat testfiles/bbstored.pid` 
    417  
     427__E 
     428                        } 
     429 
     430 
     431                        print TESTFILE <<__E; 
    418432echo Removing old test files... 
    419433chmod -R a+rwx testfiles 
Note: See TracChangeset for help on using the changeset viewer.