VirtualBox

Ignore:
Timestamp:
Apr 25, 2014 1:11:17 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93460
Message:

Installer/darwin: don't rely on $PATH for finding pkill, and give more hints why VBoxSVC is still around, preventing the update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution.dist

    r50588 r51142  
    6767                  the waiting time was elapsed. In the extreme case this was
    6868                  infinitely long, blocking updates. */
    69                system.run('/bin/sh', '-c', 'pids=`/usr/bin/pgrep VBoxXPCOMIPCD` rc=0; [ -z "$pids" ] && rc=1; for i in $pids; do c=`/usr/sbin/lsof -p $i | /usr/bin/grep -E \'^[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +unix\' | wc -l`; [ $c -le 2 ] || rc=1; done; if [ $rc -eq 0 ]; then pkill -KILL \'^(VirtualBox)|(VBoxNetDHCP)|(VBoxNetNAT)|(VBoxHeadless)|(VBoxXPCOMIPCD)|(VBoxSVC)$\'; sleep 1; fi');
     69               system.run('/bin/sh', '-c', 'pids=`/usr/bin/pgrep VBoxXPCOMIPCD` rc=0; [ -z "$pids" ] && rc=1; for i in $pids; do c=`/usr/sbin/lsof -p $i | /usr/bin/grep -E \'^[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +unix\' | wc -l`; [ $c -le 2 ] || rc=1; done; if [ $rc -eq 0 ]; then /usr/bin/pkill -KILL \'^(VirtualBox)|(VBoxNetDHCP)|(VBoxNetNAT)|(VBoxHeadless)|(VBoxXPCOMIPCD)|(VBoxSVC)$\'; sleep 1; fi');
    7070           }
    7171       } catch (e) { system.log(e); }
     
    8282       if (!result)
    8383       {
     84           /* Temporary instrumentation for finding out with some probability
     85            * who keeps VBoxSVC busy (unix socket to VBoxXPCOMIPCD open). Needs
     86            * very little time (unlike a full lsof) and causes bearable amount
     87            * of messages to install.log so that it can stay in for a while. */
     88           try
     89           {
     90               system.run('/usr/sbin/lsof', '-l', '-U');
     91           } catch (e) { system.log(e); }
     92
    8493           my.result.type = 'Fatal';
    8594           my.result.title = system.localizedString('RUNNING_VMS_TLE');
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette