当前位置: 技术问答>linux和unix
一个关于fork函数的奇怪问题!?
来源: 互联网 发布时间:2015-12-26
本文导语: #include #include #include int glob =6; char buf[] ="a write to stdoutn"; int main(int argv, char** argc) { int var; pid_t pid; var =88; if(write(STDOUT_FILENO, buf, sizeof(buf)-1)
#include
#include
#include
int glob =6;
char buf[] ="a write to stdoutn";
int main(int argv, char** argc)
{
int var;
pid_t pid;
var =88;
if(write(STDOUT_FILENO, buf, sizeof(buf)-1)
#include
#include
int glob =6;
char buf[] ="a write to stdoutn";
int main(int argv, char** argc)
{
int var;
pid_t pid;
var =88;
if(write(STDOUT_FILENO, buf, sizeof(buf)-1)