Project

General

Profile

Bug #1921

pstop fails if process is being truss-ed

Added by Vladimir Kirillov over 8 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2011-12-21
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

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?

History

#1

Updated by Milan Jurik about 8 years ago

pstop should do the same thing as other p-commands, something like:

pstop: cannot examine PID: process is traced

#2

Updated by Rich Lowe over 7 years ago

  • Project changed from site to illumos gate
#3

Updated by Alexander Eremin about 7 years ago

PGRAB_FORCE allows to pass EBUSY for /proc/xxx/as - shouldn't we remove this flag here?

Also available in: Atom PDF