Skip to content

Instantly share code, notes, and snippets.

View goshhhy's full-sized avatar
💭
my other computer's a ppc64le

linear cannon goshhhy

💭
my other computer's a ppc64le
View GitHub Profile
@goshhhy
goshhhy / reap.c
Last active August 12, 2019 18:15
#include <stdio.h>
#include <thread.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
int reaper_thread( void *arg ) {
int pid, status;
while ( 1 ) {
pid = wait(&status);