From: <sk...@us...> - 2011-05-16 21:06:03
|
Revision: 2422 http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2422&view=rev Author: skitt Date: 2011-05-16 21:05:54 +0000 (Mon, 16 May 2011) Log Message: ----------- Avoid quitting on recoverable signals; thanks to Kees Cook <ke...@ub...> for the patch. Modified Paths: -------------- trunk/NEWS trunk/utils/inputattach.c Modified: trunk/NEWS =================================================================== --- trunk/NEWS 2011-04-05 07:24:27 UTC (rev 2421) +++ trunk/NEWS 2011-05-16 21:05:54 UTC (rev 2422) @@ -1,3 +1,10 @@ +Version 1.4 +----------- + +* inputattach no longer aborts when it receives a recoverable signal + (thanks to Kees Cook <ke...@ub...> for the patch). + + Version 1.4rc1 -------------- Modified: trunk/utils/inputattach.c =================================================================== --- trunk/utils/inputattach.c 2011-04-05 07:24:27 UTC (rev 2421) +++ trunk/utils/inputattach.c 2011-05-16 21:05:54 UTC (rev 2422) @@ -738,7 +738,7 @@ retval = EXIT_FAILURE; } - read(fd, NULL, 0); + for (errno = 0; errno != EINTR; read(fd, NULL, 0)) ; ldisc = 0; ioctl(fd, TIOCSETD, &ldisc); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |