11cb0ef41Sopenharmony_ciconst fork = require('child_process').fork; 21cb0ef41Sopenharmony_ciconst path = require('path'); 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ciconst child = fork( 51cb0ef41Sopenharmony_ci path.join(__dirname, 'child-process-persistent.js'), 61cb0ef41Sopenharmony_ci [], 71cb0ef41Sopenharmony_ci { detached: true, stdio: 'ignore' } 81cb0ef41Sopenharmony_ci); 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ciconsole.log(child.pid); 111cb0ef41Sopenharmony_ci 121cb0ef41Sopenharmony_cichild.unref(); 13