Changeset 2672

Show
Ignore:
Timestamp:
01/26/08 12:44:15 (10 months ago)
Author:
dhozac
Message:

Prevent deadlock between sc_helper vserver ... stop invocation, and stopSleepingGuest.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/scripts/vserver-build.functions

    r2628 r2672  
    265265        exec  > /dev/null 
    266266        exec 2> /dev/null 
     267        trap 'kill -s 9 -- -1; exit 0' INT 
    267268        sleep $timeout 
    268269        kill -s 15 -- -1 
     
    274275{ 
    275276    local guest="$1" 
    276     $_VSERVER "$guest" stop --rescue-init 
    277 } 
     277    $_VKILL --xid "$guest" -s INT -- 1 
     278}