From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: print a warning when starting Gtk+ emacs in daemon mode Date: Tue, 31 May 2011 03:00:47 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1306825256 13286 80.91.229.12 (31 May 2011 07:00:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 May 2011 07:00:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 31 09:00:52 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QRIwe-0008FY-5S for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 09:00:52 +0200 Original-Received: from localhost ([::1]:60173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRIwd-0005xE-Ir for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 03:00:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRIwb-0005wQ-7T for emacs-devel@gnu.org; Tue, 31 May 2011 03:00:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRIwa-0007ld-AQ for emacs-devel@gnu.org; Tue, 31 May 2011 03:00:49 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:60767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRIwa-0007lZ-3Q for emacs-devel@gnu.org; Tue, 31 May 2011 03:00:48 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QRIwZ-0005DF-M1 for emacs-devel@gnu.org; Tue, 31 May 2011 03:00:47 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139935 Archived-At: 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]