Skip to content

Commit

Permalink
Suppress rtprio warning when ${CI} env var is set
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Aug 19, 2018
1 parent 6ed41a4 commit a4fa7fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platforms/unix/vm/sqUnixHeartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ beatStateMachine(void *careLess)
#else
# define VMNAME "squeak"
#endif
if (!getenv("CI")) {
fprintf(stderr, "This VM uses a separate heartbeat thread to update its internal clock\n");
fprintf(stderr, "and handle events. For best operation, this thread should run at a\n");
fprintf(stderr, "higher priority, however the VM was unable to change the priority. The\n");
Expand All @@ -344,11 +345,11 @@ beatStateMachine(void *careLess)
fprintf(stderr, "\nYou will need to log out and log back in for the limits to take effect.\n");
fprintf(stderr, "For more information please see\n");
fprintf(stderr, "https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/tag/r3732#linux\n");
// exit(errno);
// 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.
// exit(errno);
}
}
beatState = active;
while (beatState != condemned) {
Expand Down

0 comments on commit a4fa7fe

Please sign in to comment.