Search Results

Search: Posts Made By: kasumlolla
3,668
Posted By Corona688
You've made things much harder on yourself by...
You've made things much harder on yourself by using files instead of IPC, but all isn't lost. Linux can watch for filesystem changes with the inotify (http://linux.die.net/man/7/inotify) system.
...
3,668
Posted By Corona688
I suspect you may need to redesign your...
I suspect you may need to redesign your application for this but, the best and proper way to wait for child processes to finish is simply wait() -- or its related call waitpid(): waitpid(child_pid,...
3,668
Posted By Corona688
There's lots of ways to do this in UNIX. The...
There's lots of ways to do this in UNIX.

The simplest way to fix your loop is to add a usleep(100000); at the bottom of your while(1) loop: This will put the process to sleep for at least 100...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy