1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
.\" $Id: pvm_sendsig.3,v 1.1 1996/09/23 22:06:12 pvmsrc Exp $
.TH SENDSIG 3PVM "30 August, 1993" "" "PVM Version 3.4"
.SH NAME
pvm_sendsig \- Sends a signal to another PVM process.
.SH SYNOPSIS
.nf
.ft B
C int info = pvm_sendsig( int tid, int signum )
.br
Fortran call pvmfsendsig( tid, signum, info )
.fi
.SH PARAMETERS
.IP tid 0.8i
Integer task identifier of PVM process to receive the signal.
.br
.IP signum
Integer signal number.
.br
.IP info
Integer status code returned by the routine.
.SH DESCRIPTION
The routine
.I pvm_sendsig
sends the signal number
.I signum
to the PVM process identified by
.I tid.
If pvm_sendsig is successful,
.I info
will be 0.
If some error occurs then
.I info
will be < 0.
.PP
pvm_sendsig should only be used by programmers with Unix signal handling
experience.
Many library functions (and in fact the PVM library functions) cannot
be called in a signal handler context because they do not mask signals
or lock internal data structures.
Further caveat: the signal numbers passed between systems are not
mapped - PVM assumes that signal 9 on one system is the same as on another.
.SH EXAMPLES
.nf
C:
tid = pvm_parent();
info = pvm_sendsig( tid, SIGKILL);
.sp
Fortran:
CALL PVMFBUFINFO( BUFID, BYTES, TYPE, TID, INFO );
CALL PVMFSENDSIG( TID, SIGNUM, INFO )
.SH ERRORS
These error conditions can be returned by
.I pvm_sendsig
.IP PvmSysErr
pvmd not responding.
.IP PvmBadParam
giving an invalid tid value.
.PP
.SH SEE ALSO
|