Odi's astoundingly incomplete notes
New entries | Coderatelimiting eject
Mapped the eject key of my old iMac to the following script to rate limit it:
#!/bin/sh L="/tmp/eject.lock" [ -e $L ] || touch $L exec 3<$L flock -n 3 || exit eject "$@" sleep 5Because I found it really annoying when the kids fill the keyboard buffer with eject events that take forever to be processed.
Add comment