[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/mgetty/FC-4 mgetty-1.1.31-162174_tcflush.patch, NONE, 1.1 mgetty.spec, 1.26, 1.27



Author: jvdias

Update of /cvs/dist/rpms/mgetty/FC-4
In directory cvs.devel.redhat.com:/tmp/cvs-serv14638

Modified Files:
	mgetty.spec 
Added Files:
	mgetty-1.1.31-162174_tcflush.patch 
Log Message:
fix bugs 162174, 159581

mgetty-1.1.31-162174_tcflush.patch:
 logname.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE mgetty-1.1.31-162174_tcflush.patch ---
--- mgetty-1.1.31/logname.c.162174_tcflush	2005-07-22 17:11:17.650852000 -0400
+++ mgetty-1.1.31/logname.c	2005-07-22 17:13:13.114273000 -0400
@@ -368,10 +368,11 @@
 	    {
 		printf( "\r\n\07\r\nYour login time (%d minutes) ran out. Goodbye.\r\n",
 		       (max_login_time / 60)+1 );
-		
+		alarm(0);               /* turn off alarm */
 		sleep(3);		/* give message time to xmit */
 		lprintf( L_AUDIT, "failed dev=%s, pid=%d, login time out",
 			 Device, getpid() );
+		tcflush(1,TCOFLUSH);    /* allow us to exit without hanging (bug 164002) */
 		exit(0);		/* bye bye... */
 	    }
 	    ch = CKILL;			/* timeout #1 -> clear input */


Index: mgetty.spec
===================================================================
RCS file: /cvs/dist/rpms/mgetty/FC-4/mgetty.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- mgetty.spec	25 Apr 2005 18:54:17 -0000	1.26
+++ mgetty.spec	23 Jul 2005 00:29:44 -0000	1.27
@@ -5,7 +5,7 @@
 Summary: A getty replacement for use with data and fax modems.
 Name: mgetty
 Version: 1.1.33
-Release: 1
+Release: 2_FC4
 Source: ftp://alpha.greenie.net/pub/mgetty/source/1.1/mgetty%{version}-Apr10.tar.gz
 Source1: ftp://alpha.greenie.net/pub/mgetty/source/1.1/mgetty%{version}-Apr10.tar.gz.asc
 Source2: logrotate.mgetty
@@ -28,6 +28,7 @@
 Patch13: mgetty-1.1.31-W-format.patch
 Patch14: mgetty-1.1.31-sendmail_path.patch
 Patch15: mgetty-1.1.31-lfs.patch
+Patch16: mgetty-1.1.31-162174_tcflush.patch
 License: GPL
 Group: Applications/Communications
 Prereq: /sbin/install-info
@@ -114,7 +115,7 @@
 cp policy.h-dist policy.h
 %patch14 -p1 -b .sendmail_path
 %patch15 -p1 -b .lfs
-
+%patch16 -p1 -b .161174_tcflush
 
 %build
 PATH=$PATH:/usr/X11R6/bin
@@ -326,6 +327,10 @@
 %{_mandir}/man1/viewfax.1x*
 
 %changelog
+* Fri Jul 22 2005 Jason Vas Dias <jvdias redhat com> 1.1.31-10
+- fix bug 162174: prevent uninterruptable hang on exit() when
+                  direct line disconnected (kernel bug 164002)
+
 * Mon Apr 25 2005 Jason Vas Dias <jvdias redhat com> 1.1.33-1
 - Upgrade to new upstream version 1.1.33
 
@@ -493,7 +498,7 @@
 - attempt to plug some potential security problems (#11874)
 
 * Thu Jul 12 2000 Than Ngo <than redhat de>
-- add new V250modem patch from ELSA (thanks to Jürgen Kosel)
+- add new V250modem patch from ELSA (thanks to Jürgen Kosel)
 
 * Wed Jul 12 2000 Prospector <bugzilla redhat com>
 - automatic rebuild


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]