fprintf (stderr, "Fork Failed\n");. exit(-1);. } else if (pid == 0) { /* child process */. printf("I am the child %d\n",pid);. execlp("/bin/ls","ls",NULL);. }.
確定! 回上一頁