terminate() function - #79
Conversation
Terminates the child process and calls the end callback
Almenon
commented
Jan 22, 2018
I like it! But kill alone may not suffice for exiting the script. There should be a paramater in the function that lets you send a kill signal like SIGKILL Example: https://github.com/Almenon/AREPL-backend/blob/master/index.js#L78 Though if you kill via signal you might also want to fix the close event functionality #94 |
the-freshlord
commented
Jan 26, 2018
Could this be merged anytime soon? I actually need this functionality in a project that I am working on. 😀 |
brucedjones
commented
Jan 26, 2018
So I added the ability to send a kill signal. One thing that was not clear to me, was why terminate should occur if both stderr and stdout are closed, the main thing we care about is the process itself ending. So I removed that functionality as it seemed like unnecessary extra complication. |
brucedjones
commented
Jan 26, 2018
So in fixing the bugs I put the ending on stderr and stdout back in. I figured it better to be consistent with previous behavior. |
brucedjones
commented
Feb 5, 2018
@extrabacon any objections to this pull request? |
extrabacon
commented
Feb 5, 2018
Not at all, I just want to make sure I can publish shortly after merging. So sorry, too much work means I don't have time to properly handle this project. |
Almenon
commented
Feb 10, 2018
@extrabacon maybe someone could be added as a maintainer? I wouldn't mind helping out with the project. Or maybe @brucedjones? |
extrabacon
commented
Feb 10, 2018
@brucedjones + @Almenon: you are now collaborators on the repo |
Almenon
commented
Feb 13, 2018
Thanks extrabacon. I guess I'll start out by taking a look at the unit tests. @brucedjones, want to merge in your pull request? |
Almenon
commented
Feb 11, 2023
@brucedjones I'm looking for a new maintainer to take on my duties, are you still up for it? |
Allows you to terminate a running python script.