Basically I'm in the middle of writing a program, and I want the only way for it to be terminated is when the user hits CTRL^D. Unfortunately, i have found that the only way to close is when the user hits CTRL^C. This is a problem because I have a function such like: while(!cin.eof()). so that it will continue to accept input until it reaches the end of input, then process more functions within the program. I don't want it to absolutely stop. However, only ctrl^c will work to stop input which also kills the service. Anyone know what might be causing this? If you wouldn't mind helping me out, that'd be great.