Skip to content

Instantly share code, notes, and snippets.

@kuremu
kuremu / noint.c
Created Nov 23, 2019
Wrapper program to block SIGINT for spawned process
View noint.c
#include <signal.h>
#include <unistd.h>
#include <stdio.h>
# https://stackoverflow.com/a/4515549
# compile with `gcc -g -o noint noint.c`
# usage `./noint <command> [args...]`
int main(int argc, char *argv[])
{