rpms/imsettings/devel imsettings-no-restart-with-exit0.patch, NONE, 1.1

Akira TAGOH tagoh at fedoraproject.org
Wed May 19 08:52:42 UTC 2010


Author: tagoh

Update of /cvs/pkgs/rpms/imsettings/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv25010

Added Files:
	imsettings-no-restart-with-exit0.patch 
Log Message:


imsettings-no-restart-with-exit0.patch:
 factory.c |    4 ++++
 1 file changed, 4 insertions(+)

--- NEW FILE imsettings-no-restart-with-exit0.patch ---
2010-05-18  Akira TAGOH  <tagoh at redhat.com>

	* src/factory.c (_watch_im_status_cb): don't restart the process
	if the exit status is 0. (rhbz#573604)

Index: src/factory.c
===================================================================
--- src/factory.c	(リビジョン 392)
+++ src/factory.c	(リビジョン 393)
@@ -422,6 +422,10 @@
 
 		if (WIFEXITED (status)) {
 			g_string_append_printf(status_message, "the status %d", WEXITSTATUS (status));
+			if (WEXITSTATUS (status) == 0) {
+				/* don't restart the process. the process died intentionally */
+				g_hash_table_remove(priv->pid2id, GINT_TO_POINTER (pid));
+			}
 		} else if (WIFSIGNALED (status)) {
 			g_string_append_printf(status_message, "the signal %d", WTERMSIG (status));
 			if (WCOREDUMP (status)) {



More information about the scm-commits mailing list