#include<iostream> #include<unistd.h> #include<signal.h> #include<sys/wait.h> using namespace std; int main() { pid_t pid; pid=fork(); if(pid==0) {execl("/usr/bin/firefox","firefox",NULL,NULL); } else { waitpid(pid,0,0); // Cocugun sonlanmasını bekle cout<<"İŞLEM TAMAM"<<endl; } return 0;}