/
githubmirror
/
strace
Обзор
Документация
Войти
/
githubmirror
/
strace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
attic/test/sig.c
21 строка
261 B
Dmitry V. Levin
Move outdated files to attic
02 фев 2021, 11:00
02 фев 2021, 11:00
60c2d48
Код
Авторство
О чём код?
#include <stdlib.h> #include <signal.h> #include <unistd.h> static void interrupt(void) { write(2, "xyzzy\n", 6); } int main(int argc, char *argv[]) { char buf[1024]; signal(SIGINT, interrupt); read(0, buf, 1024); write(2, "qwerty\n", 7); return 0; }