You didn't include all of your code so I'm not entirely sure what you are doing.
But, don't use fork() (or threads) if you want things to run sequentially. fork() is why you are seeing multiple processes. You can still use alarm() without it.
In reply to Re: Timeout and kill
by onelesd
in thread Timeout and kill
by nelson64
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |