Function report | 
Source Code:kernel\debug\kdb\kdb_main.c | 
Create Date:2022-07-28 11:42:16 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:kdb_kill - This function implements the 'kill' commands.
Proto:static int kdb_kill(int argc, const char **argv)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | argc | |
| const char ** | argv | 
| 2456 | If argc != 2 Then Return KDB_ARGCOUNT | 
| 2459 | sig = simple_strtol(argv[1], & endp, 0) | 
| 2460 | If endp Then Return KDB_BADINT | 
| 2462 | If sig >= 0 || Not Test if 'sig' is valid signal. Use this instead of testing _NSIG directly Then | 
| 2463 | kdb_printf("Invalid signal parameter.<-signal>\n") | 
| 2464 | Return 0 | 
| 2468 | pid = simple_strtol(argv[2], & endp, 0) | 
| 2469 | If endp Then Return KDB_BADINT | 
| 2471 | If pid <= 0 Then | 
| 2472 | kdb_printf("Process ID must be large than 0.\n") | 
| 2473 | Return 0 | 
| 2478 | If Not p Then | 
| 2479 | kdb_printf("The specified process isn't found.\n") | 
| 2480 | Return 0 | 
| 2482 | p = group_leader | 
| 2484 | Return 0 | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |