1

I'm having an intermittent issue where Emacs appears to freeze. Pressing C-g eventually returns control of Emacs to me with the following message in the *Messages* buffer:

Waiting for process to die...done

How do I find out what process is hogging Emacs?

  • Hard to say, but the first thing might be to investigate the return value of (process-list). That won't help much if the process is gone before you get to evaluate this function, though. – Harald Hanche-Olsen Sep 1 '16 at 15:44
  • On what operating system? If Emacs is frozen, external debugging tools will probably help. – Gilles 'SO- stop being evil' Sep 1 '16 at 21:36
3

You might try at the command line:

kill -USR2 pid

where pid is the emacs process that is stuck. Sometimes this leads to a traceback that might tell you what is going on.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.