[ACCEPTED]-Always app Java end with "Exit 143" Ubuntu-exit

Accepted answer
Score: 39

Exit code 143 corresponds to SIGTERM, which is 5 the signal sent by default when you run 4 kill <pid>. Is it possible that another process or 3 user is killing the application? Without 2 more information it's difficult to suggest 1 anything else.

Score: 5

I ran into a similar issue while using nodejs, and 10 it turned out that it was actually my app 9 and my code that was killing it.

I had code 8 like this (ok, i don't have function names 7 like that, but you get the point):


The problem 6 was that kill_anything_that_is_still_running_from_previous_execution was async and returned immediately 5 and (due to bad "luck") the actual killing 4 part always ended up happening only after 3 start_a_lot_of_stuff finished running, which is obviously not 2 very great. #spawncamping

Oh, and in Java Runtime.getRuntime().exec("bash -c \"killall whatever\"") is "async" if 1 you don't wait for it to exit.

More Related questions