My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 53: rTorrent & Advanced scripting bug
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  login...@gmail.com
Closed:  Jan 2012
Cc:  login...@gmail.com


 
Project Member Reported by login...@gmail.com, Jan 21, 2012
What steps will reproduce the problem?
1. Use torrentexpander to run a script that work for some time
2. rTorrent will stop working until the script ends.

What do you see?
Absolutely no response from rtorrent (it's freezed) while my scripts run.


Jan 21, 2012
Project Member #1 addicted...@gmail.com
This is not a torrentexpander issue but a rtorrent limitation

torrentexpander is probably freezing rtorrent too

Can you try to launch torrentexpander with a line like this one (it should allow it to multitask):
system.method.set_key = event.download.finished,torrentexpander,"execute=. /path/to/your/torrentexpander.sh,$d.get_base_path=,$d.get_base_filename="
Instead of :
system.method.set_key = event.download.finished,torrentexpander,"execute=/path/to/your/torrentexpander.sh,$d.get_base_path=,$d.get_base_filename="

Let me know how it works for you

Thanks
Jan 21, 2012
#2 pyroscope.project
That won't work on so many levels, starting with the fact the command provided to execute is NOT passed to a shell (so '.' is not 'source'), since execvp() is used.

What works is using execute.bg= in 0.8.9, which will leave zombies behind though due to a buggy implementation. Or you decouple your script yourself from the calling process (i.e. demonize it), which is the best way.
Jan 21, 2012
Project Member #3 addicted...@gmail.com
Hi
I'm sorry but you lost me from the first line of your comment.
I'll need to do some research, as I'm not familiar with any of these.

I'm getting worried because I use the . to restart torrentexpander after an update. It seems to work, but can it cause an issue, or is this restricted to rtorrent.
Remember that I'm still a n00b that discovered shell programming while starting this project.

Thanks
Jan 21, 2012
Project Member #4 login...@gmail.com
Pyroscope!, welcome to torrentexpander.
I'm using rtorrent 0.8.6, i will try to update to use your suggestion!
Jan 22, 2012
#5 pyroscope.project
Google's your friend, in this case using "bash daemonize".

If you properly decouple a script from rTorrent, you can even send xmlrpc commands back to it, which would otherwise result in a deadlock.
Jan 22, 2012
Project Member #6 login...@gmail.com
I will try with nohup
Jan 25, 2012
Project Member #7 login...@gmail.com
rTorrent defect
Status: Invalid
Cc: login...@gmail.com

Powered by Google Project Hosting