Skip to content

Instantly share code, notes, and snippets.

@iTrooz
Created June 25, 2023 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iTrooz/b981ac330fd48666b1329eab8cdbd21a to your computer and use it in GitHub Desktop.
Save iTrooz/b981ac330fd48666b1329eab8cdbd21a to your computer and use it in GitHub Desktop.
Infinite sleep
// Like https://gist.github.com/iTrooz/b0e932fc6e0382b1b90751af979d1aa0 but without stdin, and can't really be stopped from waiting
// CC0 / Public domain
#include<unistd.h>
#include<limits.h>
int main(){
sleep(UINT_MAX);
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment