[rhinstaller/anaconda/pulls/278 master] Use someone else's code for PID file management.

vpodzime installerbot-noreply at redhat.com
Thu Aug 6 07:30:06 UTC 2015


> @@ -925,56 +925,14 @@ if __name__ == "__main__":
>      # make sure we have /var/log soon, some programs fail to start without it
>      iutil.mkdirChain("/var/log")
>  
> -    # Share these with the exit handler, installed later
> -    pidfile_path = '/var/run/anaconda.pid'
> -    pidfile_created = False
> +    # Create a PID file. The exit handler, installed later, will clean it up.
> +    import pid

Cannot agree more! But could we move this import next to the other "standard" (sys, os,...) ones?

-- 
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/278#discussion_r36387703


More information about the anaconda-patches mailing list