My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 517 attachment: try-to-trigger-bug.c (539 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include "deps/hiredis/hiredis.h"

int main(void) {
redisContext *c;
redisReply *reply;

c = redisConnect((char*)"127.0.0.1", 6379);
if (c->err) {
printf("Connection error: %s\n", c->errstr);
exit(1);
}

if (!fork()) {
printf("\n");
reply = redisCommand(c, "get x");
freeReplyObject(reply);
return 0;
}
printf("\n");
reply = redisCommand(c, "get x");
freeReplyObject(reply);
return 0;
}
Powered by Google Project Hosting