all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* print a warning when starting Gtk+ emacs in daemon mode
@ 2011-05-31  7:00 Dan Nicolaescu
  2011-05-31 12:01 ` Juanma Barranquero
  2011-05-31 13:05 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Dan Nicolaescu @ 2011-05-31  7:00 UTC (permalink / raw)
  To: emacs-devel


We get many duplicate bug reports of Gtk+ emacs crashing when run in
daemon mode and the X11 connection dies.

How about printing a warning when starting Gtk+ emacs in daemon mode so
that the users are aware of the potential risks (and blame Gtk+ not
emacs ...)

OK?

=== modified file 'src/emacs.c'
--- src/emacs.c   2011-05-31 05:12:19 +0000
+++ src/emacs.c   2011-05-31 06:42:45 +0000
@@ -1002,6 +1002,11 @@ main (int argc, char **argv)
   }
 
 #ifndef NS_IMPL_COCOA
+#ifdef USE_GTK
+      fprintf (stderr, "Warning: due a long standing Gtk+ bug\nhttp://bugzilla.gnome.org/show_bug.cgi?id=85715\n\
+Emacs might crash when run in deamon mode and the X11 connection is unexpectedly lost.\n\
+Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.");
+#endif
       f = fork ();
 #else /* NS_IMPL_COCOA */
       /* Under Cocoa we must do fork+exec as CoreFoundation lib fails in


[Improvements for the warning text are more than welcome]



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-02 16:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31  7:00 print a warning when starting Gtk+ emacs in daemon mode Dan Nicolaescu
2011-05-31 12:01 ` Juanma Barranquero
2011-05-31 13:05 ` Stefan Monnier
2011-05-31 14:00   ` Dan Nicolaescu
2011-05-31 15:05     ` Stefan Monnier
2011-06-02 16:58       ` Dan Nicolaescu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.