Skip to content

Commit 45d00ab

Browse files
committed
Added EVAL.md and temporary fix for wordpress problem
1 parent 820b440 commit 45d00ab

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

EVAL.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- [ ] Check if wordpress is working
2+
- [ ] Test with script [testResponses.py](websites/config_test/listing/testResponses.py)
3+
- [ ] Go through config_test website and test basic functionality of all links

src/poll/AConnection.cpp

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -385,24 +385,25 @@ void AConnection::onNoPollEvent(struct pollfd &) {
385385
static bool initPipes(int a[2], int b[2]) {
386386
static int const fdsize = 4;
387387
int fd[fdsize];
388-
int flags[fdsize];
388+
// int flags;
389389

390390
if (pipe(&(fd[0])) == -1) return false;
391391
if (pipe(&(fd[2])) == -1) {
392392
close(fd[0]);
393393
close(fd[1]);
394394
return false;
395395
}
396-
for (int i = 0; i < fdsize; ++i) {
397-
flags[i] = fcntl(fd[i], F_GETFL, 0);
398-
if (flags[i] == -1 || fcntl(fd[i], F_SETFL, flags[i] | O_NONBLOCK) == -1) {
399-
close(fd[0]);
400-
close(fd[1]);
401-
close(fd[2]);
402-
close(fd[3]);
403-
return false;
404-
}
405-
}
396+
// for (int i = 0; i < fdsize; ++i) { // TODO: Figure out why this breaks
397+
// wordpress
398+
// flags = fcntl(fd[i], F_GETFL, 0);
399+
// if (flags == -1 || fcntl(fd[i], F_SETFL, flags | O_NONBLOCK) == -1) {
400+
// close(fd[0]);
401+
// close(fd[1]);
402+
// close(fd[2]);
403+
// close(fd[3]);
404+
// return false;
405+
// }
406+
// }
406407
a[0] = fd[0];
407408
a[1] = fd[1];
408409
b[0] = fd[2];

0 commit comments

Comments
 (0)