Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pvm_kill(3pvm) [redhat man page]

KILL(3PVM)							  PVM Version 3.4							KILL(3PVM)

NAME
pvm_kill - Terminates a specified PVM process. SYNOPSIS
C int info = pvm_kill( int tid ) Fortran call pvmfkill( tid, info ) PARAMETERS
tid Integer task identifier of the PVM process to be killed (not yourself). info Integer status code returned by the routine. Values less than zero indicate an error. DESCRIPTION
The routine pvm_kill sends a terminate (SIGTERM) signal to the PVM process identified by tid. In the case of multiprocessors the terminate signal is replaced with a host dependent method for killing a process. If pvm_kill is successful, info will be 0. If some error occurs then info will be < 0. pvm_kill is not designed to kill the calling process. To kill yourself in C call pvm_exit() followed by exit(). To kill yourself in For- tran call pvmfexit followed by stop. EXAMPLES
C: info = pvm_kill( tid ); Fortran: CALL PVMFKILL( TID, INFO ) ERRORS
These error conditions can be returned by pvm_kill PvmBadParam giving an invalid tid value. PvmSysErr pvmd not responding. SEE ALSO
pvm_exit(3PVM), pvm_halt(3PVM) 30 August, 1993 KILL(3PVM)

Check Out this Related Man Page

SENDSIG(3PVM)							  PVM Version 3.4						     SENDSIG(3PVM)

NAME
pvm_sendsig - Sends a signal to another PVM process. SYNOPSIS
C int info = pvm_sendsig( int tid, int signum ) Fortran call pvmfsendsig( tid, signum, info ) PARAMETERS
tid Integer task identifier of PVM process to receive the signal. signum Integer signal number. info Integer status code returned by the routine. DESCRIPTION
The routine pvm_sendsig sends the signal number signum to the PVM process identified by tid. If pvm_sendsig is successful, info will be 0. If some error occurs then info will be < 0. 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. EXAMPLES
C: tid = pvm_parent(); info = pvm_sendsig( tid, SIGKILL); Fortran: CALL PVMFBUFINFO( BUFID, BYTES, TYPE, TID, INFO ); CALL PVMFSENDSIG( TID, SIGNUM, INFO ) ERRORS
These error conditions can be returned by pvm_sendsig PvmSysErr pvmd not responding. PvmBadParam giving an invalid tid value. SEE ALSO
30 August, 1993 SENDSIG(3PVM)
Man Page

11 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

kill, set prompt

ok, there is a way to nicely kill a suspended job and to terminate another without using the mass -KILL command. also, how can I set my prompt temporarly without using the .bash_profile that uses the PS1. Thanks:) (1 Reply)
Discussion started by: bitwize
1 Replies

2. News, Links, Events and Announcements

hey! i took that!.....

http://developers.slashdot.org/article.pl?sid=04/05/05/2140200&mode=thread&tid=108&tid=126&tid=146&tid=156&tid=99 (0 Replies)
Discussion started by: norsk hedensk
0 Replies

3. UNIX for Dummies Questions & Answers

UNIX Process Suspend

Hi, I have this doubt.... When some program is running and if we press CTRL+Z...it is suspended... what should we do to continue its execution I know that KILL can be used to completely terminate the process....but is there any way to continue... Thanks (3 Replies)
Discussion started by: proton
3 Replies

4. UNIX for Advanced & Expert Users

Interrupt signal Control C takes too long to terminate a process

I have a process to terminate, and when keying Control C/ kill -int , it takes 15 minutes to half an hour to terminate the process. I've tried using kill -2, or keying control c twice, however the process seem to be killed abruptly, without writing into the log file. So the only way in order to... (8 Replies)
Discussion started by: paqui
8 Replies

5. HP-UX

About kill process

I try to copy a file to another system using NFS, but it is very slow, i want to kill this process. I tried a kill -9 on this cp process but still can't terminate, without any error message. Are there any method can terminate it, except reboot :confused: THANKS (1 Reply)
Discussion started by: zetadhell
1 Replies

6. Programming

PThread liberary doubt

I would like to ask that PrintHello accepts a void pointer but how come you can equate it to an integer directly ? " tid = (int)threadid; " while at the same time instead if a pointer a normal variable was passed into this function " pthread_create(&threads, NULL, PrintHello, (void *)t); " ... (2 Replies)
Discussion started by: digi123
2 Replies

7. UNIX for Dummies Questions & Answers

killing 300 process at the same time

Here's the scenario i have this servd process i want to kill, but i want to kill it one time. bash-2.03# ps -ef | grep servd | grep User123 | wc -l 300 bash-2.03# ps -ef | grep servd | grep User123 | more User123 2007 2006 0 03:17:09 pts/12 0:00 /usr/bin/su - User123 -c ssh... (2 Replies)
Discussion started by: hrist
2 Replies

8. Infrastructure Monitoring

unable to load console info in SUNMC 4.0

hi all, unable to load console info in SUNMC 4.0 in alarm it is giving error info i.e..Agent on host (.....),1161 port not responding. plz try to solve the problem Regards spandhan (5 Replies)
Discussion started by: spandhan
5 Replies

9. Shell Programming and Scripting

Cut string from a line into a variable

Hi, I am working on a ksh script and I´m stuck on the following: I have to get the pthread_id from a procstack file for a particular tid#. ---------- tid# 1274057 (pthread ID: 1800) ---------- ---------- tid# 1736913 (pthread ID: 4019) ---------- ---------- tid# 1478705 (pthread ID: ... (7 Replies)
Discussion started by: tmf33uk
7 Replies

10. Windows & DOS: Issues & Discussions

Kill a process

Hi, How can I terminate process using vbscript. PLEASE NOTE, I need to terminate process that runs under windows 64-bit environment as native 64 (not using select * from win_32_Process) (3 Replies)
Discussion started by: cratercrabs
3 Replies

11. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies