The following process is still alive, but the actual code has finished. How do I go about making sure the process gets ended?
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 8100 90.4 3.4 13364 8956 ? Rl Jun07 2335:22 ruby haccts.rb
I found out what R and l stand for:
R Running or runnable (on run queue)
l Multi-threaded (using CLONE_THREAD, like NPTL pthread do)
Not sure about Ruby, but in most programming languages, you add
return 0;at the end of the program. I think it was something likeProcess.Exit()in Ruby however.