How does a gas pump know to shut itself off? By Cecil Adams May 29, 1981

From 1981? Some of you might think this is a zombie thread. But no, it is currently being discussed in Hacker News:

I read that article twice and I think the short answer is “magic”.