The problem was described at https://developer.pidgin.im/ticket/9698.
In Linux, I can ask pidgin to close via pkill pidgin
or kill [pid]
. The program will then take care of it and shut itself down.
Windows doesn't work this way. A WM_CLOSE
signal will only close the window, not the process (just like when you hit the x
yourself).
How do I close pidgin via command?
Motivation: It seems that many XMPP servers need the clients to actively say "goodbye" in order to realize they're offline. In other words, there are no keep-alive
packets needed or there are no timeouts (and if, quite delayed). Usually, this is no big problem, because we start and exit our clients accordingly (counting shutdown as exiting). However, if one goes into suspend
/hibernate
mode, it's just as if the network connection were gone suddenly - no chance for pidgin to say "hey there, going offline". So, I need a script to automatically close pidgin gracefully (to be executed directly before suspending).