• [^] # Re: Ca traduit bien un état d'esprit de la part des développeurs de systemd

    Posté par (site web personnel) . En réponse au journal Systemd vs Linux, quand l'intransigeance d'un développeur tourne au ridicule.... Évalué à 3.

    Question stupide : comment on s'en sort si EXIT_FAILURE est 0 et EXIT_SUCCESS 1?
    Ca ne semble pas interdit par la spec.
    Du coup tu retournes EXIT_FAILURE et tu as une transformation "If the value of status is EXIT_FAILURE or EXIT_SUCCESS , an implementation-defined form of the status successful termination is returned. If the value of status is EXIT_FAILURE, an implementation-defined form
    of the status unsuccessful termination is returned.", mal barré car il y a deux chemins pour EXIT_FAILURE...

    Un truc que j'ai dû louper, mais je ne vois nul part EXIT_FAILURE interdit d'être 0 ("EXIT_FAILURE and EXIT_SUCCESS which expand to integer constant expressions"