Thank you for taking the time to report this bug and helping to make Ubuntu better.
I can reproduce this. I quickly instrumented run-this-one to see why it takes time. The pgrep took 5.4ms, so avoiding the pgrep won't help. The lsof call took 1376ms, so that's where most of the delay is. There's also a "sleep 0.5" in there. The sleep together with the lsof account for most of the time. Suggestions welcome. I'm marking Importance: Low since I can't imagine a use case where this would cause a real practical impact to Ubuntu users. If you're affected more severely, please explain your use case. ** Changed in: run-one (Ubuntu) Status: New => Triaged ** Changed in: run-one (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917157 Title: run-this-one is very slow To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/run-one/+bug/1917157/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs