Search Results

Search: Posts Made By: Yetzederixx
2,761
Posted By Yetzederixx
if(pid2 == 0) { close(piped[0]); ...
if(pid2 == 0) {
close(piped[0]);
dup2(pipefd[0], 0);
execv("/bin/ls", rArg);
}

Is there a reason you're closing the read end and then dup'ing it? Also, in the parent of 2 you're...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 11:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy