kill

Synopsis

(kill pid signal)

Parameters

  • pid : a process id
  • signal : a signal number

Description

This procedure calls the C-library function kill() with the supplied arguments and returns its result.

Side Effects

The signal is sent to the specified process, in case of an error errno is set.

Return Value

The result of kill() is returned as an exact integer.

See Also

Example

> kill
#<primitive-procedure kill>
> (kill 99999 2)
3
> (strerror (errno))
"No such process"
> (kill (getpid) 2)

ERROR!
 message   : **** BREAK ****
 irritant  : #<primitive-procedure kill>
 expression: 2
 continue  : possible, continue with value as value from primitive

Error (? for help) >>