Disabled writing to pipe unless environment variable is set.
[aesalon.git] / src / overload / communication.c
blob655f55174b607d6561be66cad7e8401bb1746056
1 #include "communication.h"
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <unistd.h>
6 #include <string.h>
8 int aesalon_overload_communication_pipefd;
9 int aesalon_overload_communication_enabled;
11 void aesalon_overload_send_string(char *string) {
12 if(aesalon_overload_communication_enabled)
13 write(aesalon_overload_communication_pipefd, string, strlen(string)+1);