What signal is Ctrl D?

What signal is Ctrl D?
Answer
Ctrl + D is not a signal, it’s EOF (End-Of-File). It closes the stdin pipe. If read(STDIN) returns 0, it means stdin closed, which means Ctrl + D was hit (assuming there is a keyboard at the other end of the pipe).
 

Tìm kiếm

Back
Top