# Exec node timeout not working in 'exec' mode

**URL:** https://discourse.nodered.org/t/exec-node-timeout-not-working-in-exec-mode/28040
**Category:** General
**Created:** [9 June 2020 10:04 UTC](https://discourse.nodered.org/t/exec-node-timeout-not-working-in-exec-mode/28040 "2020-06-09T10:04:03Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)
#### Post date: [9 June 2020 10:19 UTC](https://discourse.nodered.org/t/exec-node-timeout-not-working-in-exec-mode/28040/2 "2020-06-09T10:19:45Z")

</div>

The exec node uses the node.js child.process module either in exec or spawn mode. Have a read at  
[https://nodejs.org/api/child\_process.html](https://nodejs.org/api/child_process.html)  
for a lot of info on how they work on different systems.  
Unfortunately their is quite a few little caveats in how this module spawns processes that can lead to things like orphaned processes and so on.  
Nodered has very little influence on how this happens as the exec and daemon nodes are pretty much simple straight forward wrappers around some of the functionality of the child.process module.  
So probably your problem lies on the node.js side and not the exec node implementation side so you d have to do research there about this behavior.

Johannes

---

_[View the full topic](https://discourse.nodered.org/t/exec-node-timeout-not-working-in-exec-mode/28040)._
