This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pid_t sortPID = fork(); | |
if(sortPID < 0) | |
perror("cannot fork a process for sort"); | |
else if(sortPID == 0){ | |
//Forked process --> child: sort. | |
int fd[2]; | |
//sort child opens the pipes. | |
if (pipe(fd) < 0) | |
perror("cannot create pipe"); | |
close(fd[1]); //We're not going to write to the pipe, so close it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Car Play: An app that allows uses to add songs to a playlist using bluetooth or other NFC based channels. | |
Code Transfer: A website that teaches people an new language really quickly by only showcasing the differences between their strongest language and the new language they wish to learn. |