Kill your process (and your process group)
Become a daemonized process
Sleep until a signal is received
Return if running as root
This is meant to acquire a lock on a file.