Relative Content

Tag Archive for node.jschild-processspawn

NodeJS child_processes how to sync AbortController between children

I want to spawn 2 children that perform their own requests through the .download_sections.sh script. If one of them fails, I want to be able to abort the other child as well. This is what I came up with, but for some reason it doesn’t work and the other child keeps running.