On Sun, 18 Dec 2016, SF Markus Elfring wrote:

> >> Can you generally clarify current consequences from usage of a SmPL rule 
> >> “initialize:…”
> >> together with the parameter “--jobs” for the program “spatch”?
> >
> > It should happen only once.
>
> Thanks for this information.
>
> I would like to know if the script initialisation should happen for each
> background process and/or after the start of the program “spatch”.
>
>
> > Thus without your semantic patch and your .c file, I can't tell
> > why it doesn't behave as expected.
>
> You got the corresponding data from my source code analysis try for NetBSD.
> How often do you observe a simple text line output from initialisation code
> after parallel execution of one from your test scripts?

It seems to be a problem with python initialization only.  Here is my
example script:

@initialize:python@
@@

print "hello"

@@
@@

- of_node_put(...);

Note how few lines it contains, how it is designed to illustrate the
specific problem, how easy it is to adapt to any software project one has
handy, how it is included in the email for easy reference etc.  Please do
the same.

julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to