#include #include #include #include #include "common.h" int main() { int qid = msgget(QUEUE_KEY, 0666); if (qid == -1) { perror("msgget (сервер не запущен?)"); return 1; } struct message msg = {TYPE_KILL, getpid(), 0}; if (msgsnd(qid, &msg, MSG_SIZE, 0) == -1) { perror("msgsnd"); return 1; } printf("Киллер: сообщение отправлено\n"); return 0; }