On Saturday 13 January 2007 09:42, Michael Sullivan wrote:
> This strace doesn't help me much.  What does "attached" mean, anyway?

I don't know what the problem is, but I can tell you that strace "attaches" to 
a process meaning that it begins to watch the process to see what system 
calls it is making.  If the process doesn't make any system calls, then you 
won't see anything with strace.  For example,

#define BIG_NUMBER 4e15
main () {
        long x;
        for(int i=0; i<BIG_NUMBER; i++)
                x+=i;
}

When this small program is in the loop, it will not be making any system calls 
(i.e., no output/input or other system calls) so it will be a very busy 
process but it won't show anything in strace.  Hope that answers your 
question!

-- 
Randy Barlow
http://www.electronsweatshop.com
"Oh me of little faith..."
-- 
[email protected] mailing list

Reply via email to