Question: However, if forkfile has no rule number rule_num, the function should return-1 without doing anything else. If the command didn't exit normally when do_action() tried

However, if forkfile has no rule number rule_num, the function should return-1 without doing anything else. If the command didn't exit normally when do_action() tried to perform it, - I should be returned. In order to perform the command of a rule, the function will have to create a child process that will run it. As above, the function should return the child process' exit status if child process exited normally- this is needed by our make_target mentioned earlier, which calls this function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!