Hi Eliot, On 30 March 2017 at 18:37, Eliot Miranda <eliot.miranda@gmail.com> wrote:
Hi Alistair,
On Mar 30, 2017, at 5:03 AM, Alistair Grant <akgrant0710@gmail.com> wrote:
On 30 March 2017 at 11:58, Pavel Krivanek <pavel.krivanek@gmail.com> wrote: Yes, the same priority. See:
The VM may have issues with clock jitter due to the heartbeat thread not running at elevated priority. An exit may be appropriate in some cases, but for most users the above warning is sufficient.
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/32f321583c69ca27e61...
Cheers, -- Pavel
From looking at the code, my understanding is that the VM attempts to elevate the priority of the heartbeat thread, if the elevation fails, the old behaviour was to exit with a message. The new behaviour is to just warn the user (with a message to stderr) and continue.
Assuming I've read the code correctly, there's a bug that needs to be fixed: the cat statement won't work as sudo doesn't apply to file redirection; and I've suggested some more informative text:
Are you sure? Many people, myself included, have used the sudo version successfully in the past. I think I see what you mean; if sudo is a.command then the shell that invokes it is not running as superuser and it sets up the pipe. But perhaps there's behind-the-scenes magic in the shell (I've used bash) that makes it work?
Interesting, which OS are you running? It fails on Ubuntu 16.04 (I just tried it again, using bash) and ARCH linux for me (in the past).
Also isn't a nicer alternative is just to say su cat ... ?
This assumes that you can log in as the root account. It's disabled in lots of distributions (and considered poor form to enable it). Of course, my version assumes that sudo is installed and configured, but, at least within the Linux community, I think it is a reasonable assumption. Cheers, Alistair