Hi,

As we figured out in bug https://cfengine.com/bugtracker/view.php?id=472 
, there
is subtle change between Cfengine 2 and Cfengine 3 in handling subprocesses.

Namely, Cfengine 3 does not ignore SIGPIPE and hence processes run from 
it might
have it delivered (and hence killed by it).

If you use pipelines in your scripts run by Cfengine and there is 
possibility
that processes in those pipelines may end up early (not consuming all 
the output
from previous process in pipe), to get consistent results under Cfengine 
2 and 3
it is useful to set SIGPIPE handler to "ignore"

  trap '' SIGPIPE
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to