Lurker News

Comments (169) 37 threads

Earlier comments
janinge#
Having a modernized pause/break key on your keyboard can also be handy if you ever have to use software that acts stupid on purpose, like these "Safe Exam LockDown Browsers" that some schools and universities around here have started forcing upon their students. Software like this typically just run a timer or similar to make sure that only their windows are running in the foreground, but sending them a SIGSTOP stops this annoyance.
amelius1 reply#
But what if the process uses a timer to update an animation? (I.e., the state of the timer determines the frame in the animation).

In that case, after unpausing, the animation would just skip ahead.
As a remedy, the pause button could also stop the system clock as seen by the process.

RyanRies1 reply#
Yep, different applications are guaranteed to react differently to this, depending on how they were written. And a lot of games use the _rdtsc intrinsic straight from the CPU... I can't pause that. :)
amelius#
You could write a virtual machine that compiles all code into essentially the same code except for the rdtsc instruction (basic-block analysis).

That is a lot of work, but I wonder if there are no debugging or reverse-engineering tools that work in that way.

kilolima1 reply#
Wouldn't it be easier if your girlfriend would not expect that she can walk in and interrupt you any time she wants?
RyanRies#
Well, maybe. But then maybe I wouldn't have a girlfriend. And more importantly, maybe I wouldn't be reminded that sometimes it's OK to peel myself away from a video game.
est#
Reminds me of old utility which could resize any DirectX based game and force them run in windowed mode.

Load more comments