18,772
社区成员
发帖
与我相关
我的任务
分享
#include "stdio.h"
#include <unistd.h>
int main(int argc, char const *argv[])
{
pid_t result = vfork();
if(result == 0)
{
}
else if(result > 0)
{
printf("123\n");
}
else printf("vfork failed\n");
return 0;
}