Ignore:
Timestamp:
07/31/13 07:00:38 (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
ee5d82a
Parents:
d515a9e
Message:

Add a better system of locking when GUIs can run freebsd-update, this will prevent
some messed up situations where a current freebsd-update is being screwed up by another
running process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-systemupdatertray/UpdaterTray.cpp

    rd515a9e r53791e4  
    384384  ///////////////////////////////////////////// 
    385385 
    386   // KPM Lets skip this if pc-updategui is open, having two freebsd-updates running at same time 
     386  // KPM Lets skip this if pc-fbsdupdatecheck is open, having two freebsd-updates running at same time 
    387387  // Cause *bad* things to happen 
    388   int ret = QProcess::execute("pgrep", QStringList() << "pc-updategui"); 
    389   if ( ret != 0 ) { 
     388  if ( ! QFile::exists("/tmp/.fbsdup-lock") ) { 
    390389    qDebug() << "Checking for freebsd-updates!"; 
    391390 
Note: See TracChangeset for help on using the changeset viewer.