| Issue 53: | rTorrent & Advanced scripting bug | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Jan 21, 2012
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
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
Pyroscope!, welcome to torrentexpander. I'm using rtorrent 0.8.6, i will try to update to use your suggestion!
Jan 22, 2012
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
I will try with nohup
Jan 25, 2012
rTorrent defect
Status:
Invalid
Cc: login...@gmail.com |