download | new post | before_exec on April Mon 13th 12:18 PM - Never Expires
- /* before_exec.c */
- #include <stdio.h>
- #include <unistd.h>
- #include <fcntl.h>
- char tab_ref[1000];
- void main()
- {
- /* cerere de inchidere a intrarii standard la reacoperire */
- fcntl(STDIN_FILENO, F_SETFD, FD_CLOEXEC);
- /* reacoperire */
- execl("after_exec","after_exec",NULL);
- }
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.