zhengweisk / aspersa

Automatically exported from code.google.com/p/aspersa
0 stars 0 forks source link

ioprofile doesn't check to make sure strace is actually running in the background before killing it #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
run ioprofile as a user who does not have permission to trace to given process

What is the expected output? What do you see instead?
Expect to see an error message.  I also expect it to fail fast and not wait 30 
seconds (or whatever the value of -s is) before telling me that strace could 
not be properly utilized.

What version of the product are you using? On what operating system?
trunk/linux

Please provide any additional information below.

The fix:
wait 1 second after invoking strace and ensure that the PID that we got when 
starting it is still running

Original issue reported on code.google.com by greenlion@gmail.com on 19 Feb 2011 at 12:19

GoogleCodeExporter commented 9 years ago
Fixed in revision 349.

Original comment by greenlion@gmail.com on 19 Feb 2011 at 12:24