function getOpts( options ) {
	var opts = {
		'cwd': cwd(),
		'env': env( options ),
		'stdio': 'inherit' // Use stdio of parent process
	};
	if ( options.uid ) {
		opts.uid = options.uid;
	}
	if ( options.gid ) {
		opts.gid = options.gid;
	}
	return opts;
}
Returns child process options.

@private
@param {Options} options - worker options
@param {(NonNegativeInteger|null)} [options.uid] - process user identity
@param {(NonNegativeInteger|null)} [options.gid] - process group identity
@returns {Object} child process options