Skip to content

Instantly share code, notes, and snippets.

@kuremu
kuremu / noint.c
Created November 23, 2019 04:33
Wrapper program to block SIGINT for spawned process
#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[])
{