I'm a little lost in this File System Calls functions. I'm trying to implement a simple program which copies a source file and writes into the output file.
To the point, when I fork 2 childs from a parent, I should have a pid of each child in the parent program. The first and the second.
When I use the execvp() function to execute another program within the second child, which function should I use to pass the pid of the first child into the program I've executed? Knowing that execvp() takes 2 parameters which is
The parameters I've passed is the program name and the file name.Code:execvp( const char *file, char *const argv)