You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a power shell script which Start-Process $N independent cranks which will, in turn, start up independent copies of the techempower webserver app. The powershell script finally runs a python program which doesn't intentionally exit, so the powershell script itself doesn't exit. Loads are presented and serviced.
Something causes crank to "Sending CTRL+C" which has the unfortunate side effect of killing off my python program, and ALL of the other running crank instances as well. It seems you are calling GenerateConsoleCtrlEvent(CtrlTypes.CTRL_C_EVENT ...) which I infer goes rather broadly and kills my python program. Why is the CTRL+C being sent? Why so broadly?
I am Start-Process my independent cranks with the "-NoNewWindow" argument, hoping (following Linux) that would run all of the cranks in parallel, all sharing stdout and stderr, and, indeed that is the case. But CTRL+C is sent, apparently, to all tasks sharing the same window.
I can avoid this issue by Start-Process without the -NoNewWindow; I end up with one window per crank, and the blast radius of CTRL+C is appropriately limited. But what do I do when I want to launch all of this from within a ssh session, or I do not have access to video?
The text was updated successfully, but these errors were encountered:
I have a power shell script which Start-Process $N independent cranks which will, in turn, start up independent copies of the techempower webserver app. The powershell script finally runs a python program which doesn't intentionally exit, so the powershell script itself doesn't exit. Loads are presented and serviced.
Something causes crank to "Sending CTRL+C" which has the unfortunate side effect of killing off my python program, and ALL of the other running crank instances as well. It seems you are calling GenerateConsoleCtrlEvent(CtrlTypes.CTRL_C_EVENT ...) which I infer goes rather broadly and kills my python program. Why is the CTRL+C being sent? Why so broadly?
I am Start-Process my independent cranks with the "-NoNewWindow" argument, hoping (following Linux) that would run all of the cranks in parallel, all sharing stdout and stderr, and, indeed that is the case. But CTRL+C is sent, apparently, to all tasks sharing the same window.
I can avoid this issue by Start-Process without the -NoNewWindow; I end up with one window per crank, and the blast radius of CTRL+C is appropriately limited. But what do I do when I want to launch all of this from within a ssh session, or I do not have access to video?
The text was updated successfully, but these errors were encountered: