Linux之strace

来源:互联网 发布:淘宝服装招商加盟代理 编辑:程序博客网 时间:2024/06/04 00:29
Last login: Tue Jul 29 17:55:11 2014 from 10.129.254.46/usr/bin/xauth:  timeout in locking authority file /oracle/.Xauthority[root@dwh1 ~]# ps -ef | grep ssh | grep ptsoracle    3600  3596  0 17:55 ?        00:00:00 sshd: oracle@pts/3root      4006  3756  0 18:14 pts/3    00:00:00 grep ssh[root@dwh1 ~]# ps -ef | grep ssh | grep ptsoracle    3600  3596  0 17:55 ?        00:00:00 sshd: oracle@pts/3oracle    4012  4008  0 18:14 ?        00:00:00 sshd: oracle@pts/2oracle    4013  4012  0 18:14 pts/2    00:00:00 sshd: oracle@pts/2root      4016  3756  0 18:14 pts/3    00:00:00 grep ssh[root@dwh1 ~]# strace -p 4013Process 4013 attached - interrupt to quitwait4(4014, ^C <unfinished ...>Process 4013 detached发现在等待4014进程,strace4014后[root@dwh1 ~]# strace -p 4014Process 4014 attached - interrupt to quitrestart_syscall(<... resuming interrupted call ...>) = 0open("/oracle/.Xauthority-c", O_WRONLY|O_CREAT|O_EXCL, 0600) = -1 EACCES (Permission denied)rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0nanosleep({2, 0}, 0x7fff5b9aae50)       = 0open("/oracle/.Xauthority-c", O_WRONLY|O_CREAT|O_EXCL, 0600) = -1 EACCES (Permission denied)rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0nanosleep({2, 0}, ^C <unfinished ...>Process 4014 detachedtouch 文件/oracle/.Xauthority-c 后登陆正常

0 0