DEV Community

Cover image for Inter-process communication: files

Inter-process communication: files

Leandro Proença on July 13, 2022

In the previous post we learned that computers evolved to tackle concurrency, the reason why operating systems were created in order to share compu...
Collapse
 
jianchang512 profile image
haha512 • Edited

It's an error

Standard streams
Every UNIX process comes by default with 3 standard communication channels, also known as standard streams represented by file descriptors:

fd 0: standard output (STDOUT)  // Should be input
fd 1: standard input (STDIN)       //  Should be output
fd 2: standard error (STDERR)
Enter fullscreen mode Exit fullscreen mode

The correct one should be

fd 0: standard input (STDIN)
fd 1: standard output (STDOUT)

Enter fullscreen mode Exit fullscreen mode

wiki The file descriptor for standard input is 0 (zero)

Collapse
 
leandronsp profile image
Leandro Proença

Indeed! I appreciate your feedback, it's now fixed