in reply to Is the signal handler supposed to work like this?

Your ctrl-D technique of course works on UNIX but windows often does not follow UNIX. I cannot think of any reason why windows should follow UNIX on this point. A quick search reveals many people with the same issue.

What problem are you trying to solve? Could you treat a certain string of characters as terminating the input?

  • Comment on Re: Is the signal handler supposed to work like this?