Thread overview
Terminating the process of a running LDC2 compiler.
Mar 01, 2023
realhet
Mar 03, 2023
Imperatorn
Mar 03, 2023
realhet
March 01, 2023

Hello,

Is it safe to kill an ongoing LDC2 process on Windows?

My situation is this:

  • I launch 8 LDC2 compilation command lines on 8 DLang source files.
  • One of them has a compilation error and quits.
  • At this point I wait the completion of the other threads, but it would be faster to kill all those threads, fix the error, and run the multithreaded compilation again.

Is it safe to kill those processes, or would it be unreliable (because of the integrity of environment variables, and/or cached temp files)?

Thank You!

March 03, 2023

On Wednesday, 1 March 2023 at 11:38:11 UTC, realhet wrote:

>

Hello,

Is it safe to kill an ongoing LDC2 process on Windows?

My situation is this:

  • I launch 8 LDC2 compilation command lines on 8 DLang source files.
  • One of them has a compilation error and quits.
  • At this point I wait the completion of the other threads, but it would be faster to kill all those threads, fix the error, and run the multithreaded compilation again.

Is it safe to kill those processes, or would it be unreliable (because of the integrity of environment variables, and/or cached temp files)?

Thank You!

We don't know what you mean by your definition of safe unfortunately

March 03, 2023

On Friday, 3 March 2023 at 14:33:08 UTC, Imperatorn wrote:

>

We don't know what you mean by your definition of safe unfortunately

For example killing ldc2.exe while it writes some cached temp files.
And when the next time it tries to load those corrupted files, it will crash, or generate wrong output.