Skip to content

Instantly share code, notes, and snippets.

@x-yuri
Created October 23, 2018 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x-yuri/575d4ebb40e990677ff856bf35d84386 to your computer and use it in GitHub Desktop.
Save x-yuri/575d4ebb40e990677ff856bf35d84386 to your computer and use it in GitHub Desktop.
while true; do echo -n .; sleep 1; done | strace -o 1.strace -e trace=%desc less
...
read(0, ".", 8192) = 1
read(0, ".", 8191) = 1
read(0, ".", 8190) = 1
read(0, ".", 8189) = 1
read(0, ".", 8188) = 1
read(0, ".", 8187) = 1
read(0, ".", 8186) = 1
read(0, ".", 8185) = 1
read(0, ".", 8184) = 1
read(0, ".", 8183) = 1
read(0, ".", 8182) = 1
read(0, ".", 8181) = 1
read(0, 0x55618d20f748, 8180) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment