Changeset 17486a8


Ignore:
Timestamp:
Dec 5, 2013 10:01:01 AM (4 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1
Children:
1baff96
Parents:
90b5e99
Message:

Setup PCDM to use "pgrep shutdown" to look for a shutdown process rather than just looking for the /var/run/nologin flag. If caught, this will make sure that the "shutting down" splash screen is shown.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/main.cpp

    r8877013 r17486a8  
    155155  } 
    156156  //check for shutdown process 
    157   if(QFile::exists("/var/run/nologin") || retCode > 0){ 
     157  if( system("pgrep shutdown") == 0 || retCode > 0){ 
    158158    splash.showMessage(QObject::tr("System Shutting Down"), Qt::AlignHCenter | Qt::AlignBottom, Qt::white); 
    159159    QCoreApplication::processEvents(); 
Note: See TracChangeset for help on using the changeset viewer.