~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to ctwm.h

  • Committer: Matthew Fuller
  • Date: 2018-11-12 00:27:58 UTC
  • mto: This revision was merged to the branch mainline in revision 648.
  • Revision ID: fullermd@over-yonder.net-20181112002758-or77vy3gizv7e7p8
Use a more general "signal recvd" flag in place of the specific
restart flag in most code, and write a func to dispatch whichever
signal stuff was called for.

Show diffs side-by-side

added added

removed removed

Lines of Context:
357
357
 
358
358
extern bool RestartPreviousState;
359
359
 
360
 
extern bool RestartFlag;        /* Flag that is set when SIGHUP is caught */
 
360
extern bool SignalFlag;    ///< Some signal flag has been set
 
361
extern bool RestartFlag;   ///< Flag that is set when SIGHUP is caught
 
362
extern bool ShutdownFlag;  ///< Flag that is set when shutdown signal is caught
361
363
void DoRestart(Time t);         /* Function to perform a restart */
362
364
 
363
365
#define OCCUPY(w, b) ((b == NULL) ? 1 : (w->occupation & (1 << b->number)))