File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -385,24 +385,25 @@ void AConnection::onNoPollEvent(struct pollfd &) {
385385static 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 ];
You can’t perform that action at this time.
0 commit comments