Bug #1921
pstop fails if process is being truss-ed
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2011-12-21
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
Description
$ truss xterm $ pstop $(ps -o ppid= -p $$)
truss-ing pstop showed that O_EXCL opening of the /proc/$pid/as file fails -- maybe this can be the reason to show a warning/error message in pstop?
Updated by Milan Jurik about 9 years ago
pstop should do the same thing as other p-commands, something like:
pstop: cannot examine PID: process is traced
Updated by Alexander Eremin almost 8 years ago
PGRAB_FORCE allows to pass EBUSY for /proc/xxx/as - shouldn't we remove this flag here?