Executing process

6.20 Standard Libraries

Moderators: misra-c, david ward

Post Reply
phdenis
Posts: 9
Joined: Sun Jun 24, 2018 11:34 pm
Company: Capgemini

Executing process

Post by phdenis » Sun Nov 17, 2019 10:40 pm

Hello,

Regarding the rule 20.11, the call of 'system' shall not be used. But In my current program, I'm creating process by using fork() and system() to start it.

What is the best solution to create process and start it in order to comply with MISRA C 2004 ?

By advance thanks for your answer.

misra-c
Posts: 560
Joined: Thu Jan 05, 2006 1:11 pm

Re: Executing process

Post by misra-c » Wed Nov 27, 2019 9:59 am

The MISRA-C working group can not give advice on how to write programs. However, if you need to deviate from a rule you should read section 4.3.2. The following documents are also useful.

"MISRA Compliance:2016 Achieving compliance with MISRA Coding Guidelines" which introduces the idea of permits for those cases where a required rule needs to be deviated.

An example of permits for MISRA C:2004 can be found "MISRA C:2004 Permits - Deviation permits for MISRA Compliance"
---
Posted by and on behalf of
the MISRA C Working Group

phdenis
Posts: 9
Joined: Sun Jun 24, 2018 11:34 pm
Company: Capgemini

Re: Executing process

Post by phdenis » Fri Dec 06, 2019 3:20 pm

Thanks for your reply and the links provided.

Post Reply

Return to “6.20 Standard Libraries”