Skip to content
Snippets Groups Projects
Commit 627e6180 authored by Romain Gabet's avatar Romain Gabet :speech_balloon:
Browse files

miaou

parent 4b118dfb
Branches
Tags 05-fork1
No related merge requests found
File added
File added
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include "socket.h"
void initialiser_signaux(void) {
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) {
perror("signal");
}
}
int main(int argc, char **argv) {
/* Arnold Robbins in the LJ of February '95, describing RCS */
if (argc > 1 && strcmp(argv[1], "-advice") == 0) {
printf("Don't Panic!\n");
return 42;
}
initialiser_signaux();
printf("Need an advice?\n");
creer_serveur(8000);
return 0;
}
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment