impure functionalarm

Schedules an alarm signal for the process.

Information

Like alarm(2).

Note that OpenModelica also sends SIGALRM to the process group when the alarm is triggered (in order to kill running simulations).

The first signal asks the running command to stop, so that omc survives to report what it completed; a second one a tenth of the time later (at least 5 and at most 60 seconds) terminates omc if the command has no cancellation point to stop at. Re-arming or clearing the alarm withdraws the request.

Inputs

TypeNameDefaultDescription
Integerseconds

Outputs

TypeNameDefaultDescription
IntegerpreviousSeconds