I am running a perl program on unix as a process using fork.
I use lot of sub-prgrams within the program.
If one of the sub-program hangs and did not return to the main program i would like to proceed further.
when i connect to the database and for some reason if the database has issue and the connection just hangs with out returning anything, my program does not go further.
I would like to calculate total time taken by the sub-program and if it takes more than certain amount of time i would like to proceed for the next step of the program
Is it possible to do this way.
Or else let know the best way of handling this type of issues.