rpms/lirc/devel lirc-dont-exit.patch,NONE,1.1 lirc.spec,1.36,1.37

Bastien Nocera (hadess) fedora-extras-commits at redhat.com
Thu Aug 14 15:42:09 UTC 2008


Author: hadess

Update of /cvs/pkgs/rpms/lirc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32094

Modified Files:
	lirc.spec 
Added Files:
	lirc-dont-exit.patch 
Log Message:
* Thu Aug 14 2008 - Bastien Nocera <bnocera at redhat.com> - 0.8.3-6
- Make lircd not exit when there's no device available, so that the
  daemon is running as expected when the hardware is plugged back in
  (#440231)


lirc-dont-exit.patch:

--- NEW FILE lirc-dont-exit.patch ---
Index: daemons/lircd.c
===================================================================
RCS file: /cvsroot/lirc/lirc/daemons/lircd.c,v
retrieving revision 5.77
diff -u -p -u -p -r5.77 lircd.c
--- daemons/lircd.c	9 May 2008 18:40:59 -0000	5.77
+++ daemons/lircd.c	14 Aug 2008 08:56:50 -0000
@@ -518,7 +518,11 @@ void add_client(int sock)
 				shutdown(clis[0],2);
 				close(clis[0]);
 				clin=0;
-				dosigterm(SIGTERM);
+				/* Don't exit here, otherwise lirc bails out,
+				 * and lircd exits, making it impossible to
+				 * connect to when we have a device actually
+				 * plugged in.
+				dosigterm(SIGTERM); */
 			}
 		}
 	}


Index: lirc.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lirc/devel/lirc.spec,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- lirc.spec	14 Aug 2008 09:21:43 -0000	1.36
+++ lirc.spec	14 Aug 2008 15:41:38 -0000	1.37
@@ -18,7 +18,7 @@
 
 Name:           lirc
 Version:        0.8.3
-Release:        5%{?pre:.%{pre}}%{?dist}
+Release:        6%{?pre:.%{pre}}%{?dist}
 Summary:        The Linux Infrared Remote Control package
 
 Group:          System Environment/Daemons
@@ -34,6 +34,9 @@
 # https://bugzilla.redhat.com/show_bug.cgi?id=457273
 # http://thread.gmane.org/gmane.comp.hardware.lirc/6884
 Patch3:		lirc-0.8.3-fix-remote-keycodes.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=440231
+# http://thread.gmane.org/gmane.comp.hardware.lirc/6889
+Patch4:		lirc-dont-exit.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  %{__perl}
@@ -118,6 +121,7 @@
 %patch0 -p1 -b .incl
 %patch1 -p1 -b .xbuf
 %patch2 -p1 -b .suf
+%patch4 -p0 -b .exit
 
 chmod 644 contrib/*
 
@@ -262,6 +266,11 @@
 
 
 %changelog
+* Thu Aug 14 2008 - Bastien Nocera <bnocera at redhat.com> - 0.8.3-6
+- Make lircd not exit when there's no device available, so that the
+  daemon is running as expected when the hardware is plugged back in
+  (#440231)
+
 * Thu Aug 14 2008 - Bastien Nocera <bnocera at redhat.com> - 0.8.3-5
 - Add huge patch to fix the majority of remotes to have sensible keycodes,
   so they work out-of-the-box (#457273)




More information about the fedora-extras-commits mailing list