Skip to content

Instantly share code, notes, and snippets.

@jimblandy
Created July 2, 2019 16:53
Show Gist options
  • Save jimblandy/45c4beaefb360b29baa8f719cf690ca5 to your computer and use it in GitHub Desktop.
Save jimblandy/45c4beaefb360b29baa8f719cf690ca5 to your computer and use it in GitHub Desktop.
Script for figuring out what (interesting) system calls Emacs is doing
#!/usr/bin/env bash
strace -p "$(pgrep emacs)" \
-e '!pselect6,recvmsg,poll,writev,rt_sigprocmask,rt_sigreturn,read,write,timerfd_settime' \
-e 'signal=!SIGIO'
# -e '!pselect6,rt_sigprocmask,rt_sigreturn,timerfd_settime' \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment