Ignore:
Timestamp:
16/12/2008 17:37:08 (3 years ago)
Author:
chris
Message:

Fix process kill function, fixes [2402] [2404].

Delete stale PID files after killing processes on Windows, as that
fine OS doesn't give them a chance to clean up for themselves.

File:
1 edited

Legend:

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

    r2404 r2409  
    406406kill_process() 
    407407{ 
    408         test -r testfiles/$1.pid \\ 
    409         && /bin/kill -0 -f `cat testfiles/$1.pid` \\ 
    410         && /bin/kill    -f `cat testfiles/$1.pid` 
     408        if test -r testfiles/\$1.pid; then 
     409                /bin/kill -0 -f `cat testfiles/\$1.pid` \\ 
     410                && /bin/kill -f `cat testfiles/\$1.pid` 
     411                rm testfiles/\$1.pid 
     412        fi 
    411413} 
    412414__E 
     
    417419kill_process() 
    418420{ 
    419         test -r testfiles/$1.pid \\ 
    420         && kill -0 `cat testfiles/$1.pid` \\ 
    421         && kill    `cat testfiles/$1.pid` 
     421        test -r testfiles/\$1.pid \\ 
     422        && kill -0 `cat testfiles/\$1.pid` \\ 
     423        && kill    `cat testfiles/\$1.pid` 
    422424} 
    423425__E 
Note: See TracChangeset for help on using the changeset viewer.