Please understand the scenario :
I have an embedded system, on which i do telnet and then i starts i run an application using ./binary_name &.
Now if i close the terminal, and if i do telnet from new terminal then i can see above process is still running.
Now, To check this, i have written a sample program,
#include<stdio.h>
main()
{
while(1);
}
I just compiled it and i ran it on my linux PC using ./a.out &.
Then i just closed the terminal and from new terminal i checked using ps -elf command this process was killed.
My question is why different behavior for both process. i started both the process in background. Then why?
Any suggestion?
Thanks in advance