nullis.net

Lastest links

Latest comments

On TV Today

  • CSI: NY 6x17
  • The New Adventures of Old Christine 5x16
  • Law & Order: SVU 11x15
  • Aaron Stone 2x4
  • Criminal Minds 5x17
  • Psych 4x16
  • Ugly Betty 4x15
  • Gary Unmarried 2x16
  • The Middle 1x17
  • Scrubs 9x12
  • Ghost Hunters 6x112

Welcome to nullis.net

Latest Blog Post

Quick fix for twirssi and irssi defunct processes

I noticed just today, that I had a whole heap of defunct processes running on irssi. At first I wasn't sure the cause, but then I noticed twirssi did some fork()'ing in its script (so presumed it had to be it).

On looking, it seems that is the case, and from my calculations, occurs whenever there is a failed update from twirssi (maybe something else as well, I didn't research closely).

While I didn't find a fix for it, I did find an excerpt from a publicly hosted IRC log, which pointed once way to at least get rid of the defunct processes (without closing irssi, or restarting) It was a bit hard to come by, so I'm reposting how to fix it here, so you can run it; and hopefully find it a little bit more easily.

To get rid of all the processes, do this:

/script exec for ($i = 0; $i < N; $i++) { wait; }

Where N is the number of defunct processes you have.

The information comes from here. Thanks to exor674@OFTC for the tip!

Not currently logged in.   Login.   Register?