Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336779

Summary: Eclipse hang when controling d on console
Product: [Tools] CDT Reporter: kilopopo <kilopopo>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: critical    
Priority: P3 CC: mgobeil, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=159803
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265598
Whiteboard:

Description kilopopo CLA 2011-02-10 01:09:20 EST
Build Identifier: Build id: M20100909-0800

Eclipse hang when i hit control d on the console. my code is a simple shell written in c when i type something the shell prints it back what i typed. to end it i must pass EOF to the program with control D

on eclipse console when I hit control D it hangs every time

please fix this.

Reproducible: Always

Steps to Reproduce:
1. run my program
2. go to console cdt and type Control D
3.
Comment 1 kilopopo CLA 2011-02-10 16:23:16 EST
My code is simple.

#include <stdio.h>

int main(){

char c = 'a';

while(c != EOF){
c = getchar();
}

}