2021年1月26日

第四章:基于TCP套接字编程(三)

摘要: fork and exec and wait 1.fork and wait函数 1 #include <sys/types.h> 2 #include <sys/wait.h> 3 #include <stdlib.h> 4 #include <unistd.h> 5 #include <stdi 阅读全文

posted @ 2021-01-26 20:31 陶大先生 阅读(74) 评论(0) 推荐(0) 编辑

第四章:基于TCP套接字编程(二)

摘要: fork函数 1.fork的简单例子 1 #include <stdio.h> 2 #include <unistd.h> 3 #include <sys/wait.h> 4 5 int main() { 6 printf("hello world\n"); 7 int rc = fork(); 8 阅读全文

posted @ 2021-01-26 20:12 陶大先生 阅读(63) 评论(0) 推荐(0) 编辑

导航