Changeset 51142 in vbox for trunk/src/VBox/Installer/darwin/VirtualBox_mpkg
- Timestamp:
- Apr 25, 2014 1:11:17 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 93460
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution.dist ¶
r50588 r51142 67 67 the waiting time was elapsed. In the extreme case this was 68 68 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'); 70 70 } 71 71 } catch (e) { system.log(e); } … … 82 82 if (!result) 83 83 { 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 84 93 my.result.type = 'Fatal'; 85 94 my.result.title = system.localizedString('RUNNING_VMS_TLE');
Note:
See TracChangeset
for help on using the changeset viewer.