[lorax] livemedia-creator: close the socket when done

Vratislav Podzimek vpodzime at redhat.com
Thu Jul 17 06:42:24 UTC 2014


On Wed, 2014-07-16 at 11:51 -0700, Brian C. Lane wrote:
> In some cases the socket may not be closed, so make sure it is to
> prevent hangs when shutting down the virt.
> ---
>  src/sbin/livemedia-creator | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
> index be34061..e25d422 100755
> --- a/src/sbin/livemedia-creator
> +++ b/src/sbin/livemedia-creator
> @@ -128,6 +128,7 @@ class LogRequestHandler(SocketServer.BaseRequestHandler):
>                  break
>  
>      def finish(self):
> +        self.request.close()
>          self.fp.close()
>  
>      def iserror(self, line):
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list