quitting less/more crashes/leaks program
so it seems ( at least on xterm ) that quitting more when I piped in output
from a custom program will leave the terminal hanging at times and I notice that the program leaks memory with valgrind. What is the typical approach to writing programs so that they leave most safely when quitting more/less? Don't ask me for the prog code I don't have it with me, but it's just like a program that reads in a file buffer prints it's contents to stdout and frees the buffer .
I sorta don't get why quitting more/less has to kill the piped process along with it?
is it impossible to implement repiping or dumping to /dev/null?
Last edited by NeoLux; 03-17-2013 at 03:10 PM.
|