Is there a Unix tool that will: - Run a command I give it as a child process - Inside a process group - Such that when I kill the command's process group, all of its descendants are definitely going to be killed?
-
Show this thread
-
The answer is apparently yes: `setsid`, which doesn't exist in macOS of course.
2 replies 1 retweet 39 likesShow this thread -
setsid/setpgid also don't exist in Node. Which suggests to me that it's not possible, even in theory, to write a Node process restarter that doesn't leak descendant processes. (Unless you use the "posix" library... which hasn't seen a commit in 1.5 years. So I'm not confident.)
2 replies 0 retweets 9 likesShow this thread -
reminder that it is extremely unlikely that any extant human has a long-running process that reliably rebuilds source code and restarts server/worker/etc. processes when source files change
3 replies 0 retweets 11 likesShow this thread
Haven't there been Smalltalk or Lisp environments that immediately take code changes into account? And lately, there's dark lang...
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!