Skip to content

Instantly share code, notes, and snippets.

View ashzHax's full-sized avatar
⚔️
Battling bugs and terriblly structured codes

Ash ashzHax

⚔️
Battling bugs and terriblly structured codes
View GitHub Profile
@fclairamb
fclairamb / get_ppid_and_name.c
Created October 6, 2014 20:30
posix: Get parent process id and name
#ifdef SHELL
gcc -Wall -Werror $0 && ./a.out
exit $?
#endif
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>