Skip to content

Instantly share code, notes, and snippets.

View Alexey-N-Chernyshov's full-sized avatar

Alexey Alexey-N-Chernyshov

  • Soramitsu
  • Innopolis
View GitHub Profile
@Alexey-N-Chernyshov
Alexey-N-Chernyshov / main.c
Last active May 26, 2016 08:50
Get zombie exec status.
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
// SIGCHLD handler
void bury_zombies(int sig_number)
{