gtpo1m5xOperations

ZFILE kill-End a Process or Send a Signal

Use this command to end a process or send a signal.

Requirements and Restrictions

Format




-l
writes the names of all supported signals and their corresponding signal number to the standard output (stdout) stream.

-s
sends a signal to the specified process identifier (ID).

signal
is the signal that you want to send. You can specify this value as one of the following integer values or the corresponding symbolic signal name:

Integer Value
Symbolic Signal Name

1
SIGHUP

2
SIGINT

3
SIGABRT

4
SIGILL

8
SIGFPE

9
SIGKILL

11
SIGSEGV

13
SIGPIPE

14
SIGALRM

15
SIGTERM

16
SIGUSR1

17
SIGUSR2

18
SIGABND

20
SIGCHLD

27
SIGIOER

pidnum
is the process ID created by the TPF system at the start of a process. If you do not specify the -s parameter, the SIGTERM signal is sent to end this process.

Use the getpid function in your application program to determine the process ID. The application program can be used to write the process ID to a file or to the console.

Additional Information

Examples

In the following example, a list of supported symbolic signal names is displayed.

+--------------------------------------------------------------------------------+
|User:   ZFILE kill -l                                                           |
|                                                                                |
|System: FILE0001I 23.28.38 START OF DISPLAY FROM kill -l                        |
|         1) SIGHUP    2) SIGINT    3) SIGABRT   4) SIGILL                       |
|         8) SIGFPE    9) SIGKILL  11) SIGSEGV  13) SIGPIPE                      |
|        14) SIGALRM  15) SIGTERM  16) SIGUSR1  17) SIGUSR2                      |
|        18) SIGABND  20) SIGCHLD  27) SIGIOER                                   |
|        END OF DISPLAY+                                                         |
+--------------------------------------------------------------------------------+

Related Information

See Information Technology--Portable Operating System Interface for Computer Environments (POSIX) for more information about the POSIX standards.