Skip to content

Instantly share code, notes, and snippets.

#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
bool isDebuggerAttached()
{
char buf[128] = {};
bool debugger_present = false;