> Would it make sense to have a special "I am not doing any dangerous 
> operations"
> flag that can be used by programs that know what they are doing with a target
> process? If the flag is supplied the kernel may automatically kill the agent 
> and
> continue running the process. If the flag is not supplied, it may do SIGTRAP.
> This would allow various p-tools that need to issue various system calls on
> behalf of other processes to be implemented without potentially destructive
> impact on observed processes.
> 
> - Alexander Kolbasov

Yes, I think that's a reasonable RFE.  Specifically, I think we could have
two new flags, one which requests an lwp_exit of the agent on last close,
and one which requests a SIGTRAP on last close.  It's questionable as to
whether we could make SIGTRAP the default behavior or simply re-use PR_KLC
for that, but I am concerned that somewhere someone is relying on the
current behaviors, so it might be best to do this as new options.

-Mike

-- 
Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/

Reply via email to