f_pthread_kill(thread, sig)

Purpose

This function can be used to send a signal to a target thread. The target thread is identified by argument thread. The signal which will be sent to the target thread is identified in argument sig. If sig contains value zero, error checking will be done by the system but no signal will be sent.

Class

Function

Argument Type and Attributes

thread
TYPE(f_pthread_t), INTENT(INOUT)

sig
INTEGER(4), INTENT(IN)

Result Type and Attributes

INTEGER(4)

Result Value

On successful completion, this function returns 0. Otherwise, this function returns one of the following errors.

EINVAL
The argument thread or sig is invalid.

ESRCH
The target thread does not exist.
IBM Copyright 2003