]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/w32fns.c (w32_wnd_proc): Adjust comment.
authorKen Brown <kbrown@cornell.edu>
Tue, 28 Feb 2017 16:59:12 +0000 (11:59 -0500)
committerKen Brown <kbrown@cornell.edu>
Tue, 28 Feb 2017 16:59:12 +0000 (11:59 -0500)
src/w32fns.c

index 1b628b0b42eb9c137f23d7fd9b93cc5a191ffeef..dd16d74439f53c479031df72745e22c2ac7ec3a8 100644 (file)
@@ -4801,7 +4801,11 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
     case WM_ENDSESSION:
       my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
-      /* If we return, the process will be terminated immediately.  */
+      /* Allow time for Emacs to attempt an orderly shutdown.  If we
+         return, the process will be terminated immediately.  FIXME:
+         1000 seconds is too long to sleep if the shutdown attempt
+         fails (see bug#25875).  But if it fails, we want to find out
+         about it, so let's leave 1000 for now.  */
       sleep (1000);
 
     case WM_WINDOWPOSCHANGING: