Skip to content

Instantly share code, notes, and snippets.

@pingswept
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save pingswept/c311fb052c06b1f78035 to your computer and use it in GitHub Desktop.

Select an option

Save pingswept/c311fb052c06b1f78035 to your computer and use it in GitHub Desktop.
strace-of-headlessMonitor-2014-12-05.c
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0xb6d81ac1}, {0xd50f9, [], SA_RESTORER, 0xb6d81ac1}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0xb6d81ac1}, {SIG_DFL, [], SA_RESTORER, 0xb6d81ac1}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD, parent_tidptr=0xbeb5f778) = 1146
wait4(1146, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1146
rt_sigaction(SIGINT, {0xd50f9, [], SA_RESTORER, 0xb6d81ac1}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0xb6d81ac1}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1146, si_uid=0, si_status=0, si_utime=0, si_stime=2} ---
select(0, NULL, NULL, NULL, {5, 0}) = 0 (Timeout)
openat(AT_FDCWD, "/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
brk(0xee6000) = 0xee6000
getdents(4, /* 4 entries */, 32768) = 64
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/002", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 48
open("/dev/bus/usb/002/001", O_RDWR) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0xbeb5d7a0) = 0
read(5, "\22\1\0\2\t\0\1@k\35\2\0\24\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/002/001", O_RDWR) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0xbeb5f358) = 2
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 48
open("/dev/bus/usb/001/001", O_RDWR) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0xbeb5d7a0) = 0
read(5, "\22\1\0\2\t\0\1@k\35\2\0\24\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/001/001", O_RDWR) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0xbeb5f358) = 2
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 4 entries */, 32768) = 64
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/002", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 48
open("/dev/bus/usb/002/001", O_RDWR) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0xbeb5d6a8) = 0
read(5, "\22\1\0\2\t\0\1@k\35\2\0\24\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/002/001", O_RDWR) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0xbeb5f260) = 2
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 48
open("/dev/bus/usb/001/001", O_RDWR) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0xbeb5d6a8) = 0
read(5, "\22\1\0\2\t\0\1@k\35\2\0\24\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/001/001", O_RDWR) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0xbeb5f260) = 2
close(4) = 0
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0xb6d81ac1}, {0xd50f9, [], SA_RESTORER, 0xb6d81ac1}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0xb6d81ac1}, {SIG_DFL, [], SA_RESTORER, 0xb6d81ac1}, 8) = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment