title: How to determine if nodejs child_process failed due to timeout?
body: <p>If I do <code>child_process.exec('mycommand', { timeout: 5000 }, callback)</code>, I don't know if the resulting error is caused by a timeout or some other reason. Is there a way to determine whether the failure was caused by the <code>{ timeout: 5000 }</code> option passed to <code>child_process</code>?</p>