*/
#if !defined(SVR4) && !defined(sco)
old = sigblock(sigmask(SIGTERM));
+ sigblock(sigmask(SIGHUP));
+ sigblock(sigmask(SIGPIPE));
#else
old = sighold(SIGTERM);
#endif
smGD.loggingOut = True;
+ /* JET - set this here so we don't exit prematurely (while
+ * handling our own SM exit callback - duh).
+ */
+ smGD.ExitComplete = False;
+
saveTimeout = False;
timerId = XtAppAddTimeOut (smGD.appCon, smRes.saveYourselfTimeout,
SaveTimeout, NULL);
XtDispatchEvent(&next);
}
}
+
+ /* JET - need this, since dtsession was exiting in the
+ * XtAppNextEvent above (receiving it's own EXIT SM message) This
+ * is checked in SmExit() so exit's will only occur after this
+ * housekeeping has been completed.
+ */
+ smGD.ExitComplete = True;
if (smXSMP.saveState.shutdownCanceled == False) {
/*