download | new post | after_exec on April Mon 13th 12:19 PM - Never Expires
- /* after_exec.c */
- #include <stdio.h>
- #include <unistd.h>
- #include <fcntl.h>
- char tab_ref[1000];
- void main()
- {
- int nrBytesRead;
- char ch;
- nrBytesRead = read(STDIN_FILENO, &ch, 1);
- if( nrBytesRead = -1 ) perror("Error reading stdin (because it is closed !) ");
- }
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.