kill process - Elegant way of killing a Linux program -


i running linux program uses lot of memory. if terminate manually using ctrl-c, necessary memory clean-up. i'm trying terminate program using script. elegant way so? i'm hoping similar ctrl-c can memory clean-up. using "kill -9" command this?

what mean memory clean-up? keep in mind memory freed anyway, regardless of killing signal.

default kill signal - sigterm (15) gives application chance additional work has implemented signal handler.

signal handling in c++


Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -