> On Oct 28, 2014, at 12:19 AM, Adam Leventhal via dtrace-discuss 
> <dtrace-discuss@lists.dtrace.org> wrote:
> 
> The process is not restarted. It is likely that there's a bug whereby the 
> flags set by the stop() action to cause the process to stop are cleared 
> during the act of process creation. I'd suggest you choose a different probe 
> such as syscall::forksys:return instead of proc:::start.
> 
> The script you posted worked fine for me on the version of illumos I tested 
> it out on.
> 

Last night I spent some time playing with this script.  I even managed to lock 
my machine up twice and had to hard reboot :).  Running on OmniOS r151012 this 
script does not work as is.  From what I can tell, it's an interaction between 
stop() and system().  If you remove the system() and add a wait call to the 
parent then the child is stopped (of course removing the system call means you 
lose the pid provider output on the child).

-Z

-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2
Powered by Listbox: http://www.listbox.com

Reply via email to