[initial-setup][master/rhel7-branch] Ignore the SIGINT (#1035590)

Anne Mulhern amulhern at redhat.com
Mon Dec 2 14:07:09 UTC 2013





----- Original Message -----
> From: "Vratislav Podzimek" <vpodzime at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Thursday, November 28, 2013 4:45:50 AM
> Subject: [initial-setup][master/rhel7-branch] Ignore the SIGINT (#1035590)
> 
> We don't want Initial Setup to be interupted with Ctrl+C, especially in the
> text
> mode.
> 
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
>  initial_setup/__main__.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/initial_setup/__main__.py b/initial_setup/__main__.py
> index a63e5a0..3e0c868 100644
> --- a/initial_setup/__main__.py
> +++ b/initial_setup/__main__.py
> @@ -1,9 +1,12 @@
>  #!/bin/python
>  import os
>  import sys
> +import signal
>  import pykickstart
>  from pyanaconda.users import Users
>  
> +signal.signal(signal.SIGINT, signal.SIG_IGN)
> +
>  if "DISPLAY" in os.environ and os.environ["DISPLAY"]:
>      mode="gui"
>  else:
> --
> 1.8.4.2


I guess this is related to #971323 somehow.
I have never heard of initial-setup before.
Where does it come from and what does it do?

- mulhern

> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
> 


More information about the anaconda-patches mailing list