[#2212] CID26225:

Changed to use safe calls to boost instead of direct system calls