crashtrap
设置或获取进程崩溃陷阱设置。
格式
crashtrap <pid> <1 | 0>
说明
[root@sylixos:/root]# help crashtrap
set or get process crash trap setting.
if enable, the process crash will not be killed but waiting for debugger.
crashtrap [pid] [1 | 0]
[root@sylixos:/root]#
此命令用来设置或获取进程崩溃陷阱设置。
样例
注意: ps
命令的作用是显示进程信息。
[root@sylixos:/root]# ps
NAME FATHER STAT PID GRP MEMORY UID GID USER
---------------- ---------------- ---- ----- ----- ---------- ----- ----- ------
kernel <orphan> R 0 0 0KB 0 0 root
fast_test <orphan> R 3 3 256KB 0 0 root
total vprocess: 2
[root@sylixos:/root]# crashtrap 3
Crash Trap is:Disable.