Skip to content

Instantly share code, notes, and snippets.

@r2p2
Created June 18, 2014 12:07
Show Gist options
  • Select an option

  • Save r2p2/5c26f553723c9225160f to your computer and use it in GitHub Desktop.

Select an option

Save r2p2/5c26f553723c9225160f to your computer and use it in GitHub Desktop.
strace libzmq
[pid 9540] rt_sigprocmask(SIG_SETMASK, ~[TRAP RT_1], <unfinished ...>
[pid 9511] write(9, "T,\261\276\5\0\0\0\370U\1\0\374U\1\0\fV\1\0`B\1\0\\B\1\0\20(\261\276"..., 148 <unfinished ...>
[pid 9540] <... rt_sigprocmask resumed> NULL, 8) = 0
[pid 9511] <... write resumed> ) = 148
[pid 9540] read(8, <unfinished ...>
[pid 9511] rt_sigprocmask(SIG_SETMASK, NULL, <unfinished ...>
[pid 9540] <... read resumed> "T,\261\276\5\0\0\0\370U\1\0\374U\1\0\fV\1\0`B\1\0\\B\1\0\20(\261\276"..., 148) = 148
[pid 9511] <... rt_sigprocmask resumed> [RTMIN], 8) = 0
[pid 9540] poll([{fd=8, events=POLLIN}], 1, 2000 <unfinished ...>
[pid 9511] write(9, " 5\36@\0\0\0\0\0\0\0\0\270\350\4@TV\1\0\0\0\0\200\0\0\0\0x\362\35@"..., 148 <unfinished ...>
[pid 9540] <... poll resumed> ) = 1 ([{fd=8, revents=POLLIN}])
[pid 9511] <... write resumed> ) = 148
[pid 9540] getppid( <unfinished ...>
[pid 9511] rt_sigprocmask(SIG_SETMASK, NULL, <unfinished ...>
[pid 9540] <... getppid resumed> ) = 9511
[pid 9511] <... rt_sigprocmask resumed> [RTMIN], 8) = 0
[pid 9540] read(8, <unfinished ...>
[pid 9511] rt_sigsuspend([] <unfinished ...>
[pid 9540] <... read resumed> " 5\36@\0\0\0\0\0\0\0\0\270\350\4@TV\1\0\0\0\0\200\0\0\0\0x\362\35@"..., 148) = 148
[pid 9540] old_mmap(0xbe3fc000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS|MAP_GROWSDOWN, -1, 0) = 0xbe3fc000
[pid 9540] clone(Process 9541 attached
child_stack=0xbe3ffe18, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|SIGRT_1) = 9541
[pid 9541] getpid( <unfinished ...>
[pid 9540] kill(9511, SIGRTMIN <unfinished ...>
[pid 9511] --- SIGRTMIN {si_signo=SIGRTMIN, si_code=SI_USER, si_pid=9540, si_uid=0} ---
[pid 9541] <... getpid resumed> ) = 9541
[pid 9540] <... kill resumed> ) = 0
[pid 9511] <... rt_sigsuspend resumed> ) = 32
[pid 9541] rt_sigprocmask(SIG_SETMASK, [RTMIN], <unfinished ...>
[pid 9540] poll([{fd=8, events=POLLIN}], 1, 2000 <unfinished ...>
[pid 9511] sigreturn() (mask [] <unfinished ...>
[pid 9541] <... rt_sigprocmask resumed> NULL, 8) = 0
[pid 9511] <... sigreturn resumed> ) = -1 EINTR (Interrupted system call)
[pid 9541] rt_sigprocmask(SIG_BLOCK, ~[RT_1 RT_2], <unfinished ...>
[pid 9511] socketpair(PF_LOCAL, SOCK_STREAM, 0 <unfinished ...>
[pid 9541] <... rt_sigprocmask resumed> NULL, 8) = 0
[pid 9511] <... socketpair resumed> , [10, 11]) = 0
[pid 9541] epoll_wait(7, <unfinished ...>
[pid 9511] fcntl(10, F_GETFL) = 0x2 (flags O_RDWR)
[pid 9511] fcntl(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 9511] fcntl(11, F_GETFL) = 0x2 (flags O_RDWR)
[pid 9511] fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 9511] getpid() = 9511
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment