Her is my main.c
Her is the son1 fileCode://main.c int main( void ) { int newPID; newPID = fork(); if(newPID == 0) { execl("son1", "son1", 0); } return 0; }
It compiles\buildes ok using KDevelop 2.1 but it doesnt print the text from son1.Code:int main(int argc, char *argv[] ) { printf("Im son1 \n"); return 0; }
Any obvious mistakes ? how do troubleshoot this ?