Windows, JNI: non-zero exit code for termination
Windows, JNI: non-zero exit code for termination

Terminate processes and job objects with non-zero
exit code.

Zero was the most unfortunate exit code possible
because it made the Java side believe that the
process exited successfully.

There's another bug in the Java side too where
StandaloneSpawnStrategy ignores the thread's
interruption state. I'll fix that in a separate
change.

Fixes https://github.com/bazelbuild/bazel/issues/2774

Change-Id: I01b3d95848cb04618395c9ef2fa0d1a406b25cca
PiperOrigin-RevId: 152119343

bazelbuild/bazel,ulfjack/bazel,snnn/bazel,ButterflyNetwork/bazel,safarmer/bazel,twitter-forks/bazel,twitter-forks/bazel,bazelbuild/bazel,werkt/bazel,cushon/bazel,dslomov/bazel-windows,safarmer/bazel,davidzchen/bazel,werkt/bazel,dropbox/bazel,katre/bazel,safarmer/bazel,katre/bazel,meteorcloudy/bazel,damienmg/bazel,ButterflyNetwork/bazel,snnn/bazel,davidzchen/bazel,davidzchen/bazel,davidzchen/bazel,dslomov/bazel-windows,dslomov/bazel-windows,dslomov/bazel,juhalindfors/bazel-patches,juhalindfors/bazel-patches,dslomov/bazel,davidzchen/bazel,perezd/bazel,spxtr/bazel,meteorcloudy/bazel,variac/bazel,spxtr/bazel,katre/bazel,safarmer/bazel,dropbox/bazel,akira-baruah/bazel,spxtr/bazel,meteorcloudy/bazel,ButterflyNetwork/bazel,snnn/bazel,aehlig/bazel,dropbox/bazel,dslomov/bazel,dslomov/bazel,variac/bazel,spxtr/bazel,akira-baruah/bazel,werkt/bazel,aehlig/bazel,dslomov/bazel-windows,katre/bazel,dropbox/bazel,perezd/bazel,bazelbuild/bazel,davidzchen/bazel,cushon/bazel,werkt/bazel,ulfjack/bazel,meteorcloudy/bazel,aehlig/bazel,akira-baruah/bazel,ulfjack/bazel,dslomov/bazel,meteorcloudy/bazel,twitter-forks/bazel,juhalindfors/bazel-patches,variac/bazel,dslomov/bazel-windows,perezd/bazel,ulfjack/bazel,damienmg/bazel,ulfjack/bazel,safarmer/bazel,juhalindfors/bazel-patches,variac/bazel,damienmg/bazel,aehlig/bazel,davidzchen/bazel,safarmer/bazel,dslomov/bazel-windows,aehlig/bazel,meteorcloudy/bazel,aehlig/bazel,akira-baruah/bazel,twitter-forks/bazel,spxtr/bazel,juhalindfors/bazel-patches,katre/bazel,perezd/bazel,cushon/bazel,snnn/bazel,cushon/bazel,dropbox/bazel,spxtr/bazel,akira-baruah/bazel,snnn/bazel,perezd/bazel,perezd/bazel,snnn/bazel,cushon/bazel,twitter-forks/bazel,katre/bazel,ulfjack/bazel,bazelbuild/bazel,damienmg/bazel,ButterflyNetwork/bazel,damienmg/bazel,dslomov/bazel,bazelbuild/bazel,werkt/bazel,meteorcloudy/bazel,dropbox/bazel,ButterflyNetwork/bazel,damienmg/bazel,cushon/bazel,variac/bazel,juhalindfors/bazel-patches,snnn/bazel,spxtr/bazel,damienmg/bazel,twitter-forks/bazel,aehlig/bazel,ButterflyNetwork/bazel,akira-baruah/bazel,werkt/bazel,twitter-forks/bazel,dslomov/bazel,ulfjack/bazel,juhalindfors/bazel-patches,variac/bazel,perezd/bazel,bazelbuild/bazel,variac/bazel