Re: [PATCH] When in devel mode, do not catch tracebacks, we want the core file

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

 



Hi,


I could postpone checking cmdline arguments, but then I would have to either delay initialization of signal handlers or initialize them and then deinitialize again. I'm not really sure what is cleaner.

--
Martin Sivák
msivak@xxxxxxxxxx
Red Hat Czech
Anaconda team / Brno, CZ

----- "Ales Kozumplik" <akozumpl@xxxxxxxxxx> wrote:

> On 06/30/2010 02:44 PM, Martin Sivak wrote:
> > - also make sure the terminal is in usable state when back in init
> 
> 
> This looks good, except:
> > +    /* check for development mode early */
> > +    int fdn;
> > +    if ((fdn = open("/proc/cmdline", O_RDONLY, 0)) != -1) {
> > +        int len = read(fdn, buf, sizeof(buf) - 1);
> > +        close(fdn);
> > +        if (len>  0&&  strstr(buf, "devel")) {
> > +            printf("Enabling development mode - cores will be
> dumped\n");
> > +            isDevelMode = 1;
> > +        }
> > +    }
> 
> this duplicates the command line processing in loader.c. I would
> prefer 
> putting this into parseCmdLineFlags() and moving execution of that 
> function to 'soon enough' place.


> Ales
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list



[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux