Registered Member
|
Sometimes I need to exit KTorrent remotely from a ssh login. The only way I've figured for doing that is killall, as nothing else works reliably.
When exiting by SIGTERM, KTorrent just promptly aborts uncleanly. Could sigterm instead try to be more graceful, synonymous with a standard exit? |
Registered Member
|
A standard exit could probably take too long, and something might send it a SIGKILL instead. Why not use DCOP to shut it down via ssh, or use the ktorrent ktshell interface if that enables to shut it down?
Thank you KTorrent developers!
_________________ "Thou shalt not steal." - STOP PIRACY NOW! |
Registered Member
|
|
Registered Member
|
Nope, you didn't say that before. Anyway... why not get it working then? So, not even ktshell works? What exit code does dcop have? (try "dcop arguments to dcop; echo $?") Have you tried the --user and --session parameters for dcop? (see --help for further info)
Thank you KTorrent developers!
_________________ "Thou shalt not steal." - STOP PIRACY NOW! |
Registered Member
|
http://ktorrent.org/forum/viewtopic.php?p=6897#6897
I made that comment in another thread, I'll investigate it more when I get a chance. I don't think that a prolonged SIGTERM handler can be that fatal, Squid for instance takes its leisurely time terminating and that's never caused that much trouble. Most killall shutdowns scripts wait at least 15 seconds before resorting to SIGKILL anyway. Using a different handler like USR1/USR2/HUP is perfectly fine too, I just want some more primitive way of telling ktorrent to gracefully exit. |
Moderator
|
|
Registered Member
|
|
Registered Member
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]