If it's system call, it's a call to the OS, like sysread, in which case alarm works exactly as required.
If it's "system() call", then things are different: system() forks a process, executes whatever's specified (different for single/multiple arguments), waits until the command is completed and then returns. It won't kill the spawned process, that's why it will run until the end.
In reply to Re^3: Timer Question
by saintmike
in thread Timer Question
by rudeb0y
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |