Get the App
SLTechnology News&Howtos  ›  Servers  › 

Unix parent-child interprocess communication-unnamed pipe

Shulou Source: shulou.com Published: 2022-06-02 20:54:24 10月01日 Update

#include #include #include #include #include #include #include #define MAXLINE 100char buf[MAXLINE];int main(int argc, char** agrv){int pipefd[2];int ret;if(0 != pipe(pipefd))//Create pipe {perror("pipe\n");exit(1);}//Create subroutine if((ret=fork())

Tags: Pipes files subroutines content standards inputs programs procedures in reading father and son processes communications Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei OPPO Reno MariaDB NVidia Linux