mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 06:09:09 -04:00
Added RsFileUtil for os specific file functions
Added RsFileUtil::set_fd_nonblock to set a file descriptor to non blocking
This commit is contained in:
parent
5b8ac7e49b
commit
085e102ce1
5 changed files with 86 additions and 2 deletions
|
@ -35,6 +35,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#include "util/rsdir.h"
|
||||
#include "util/rsfile.h"
|
||||
#include "pqi/pqifdbin.h"
|
||||
|
||||
#include "TorProcess.h"
|
||||
|
@ -270,8 +271,8 @@ void TorProcess::start()
|
|||
return; // stop the control thread
|
||||
}
|
||||
|
||||
unix_fcntl_nonblock(fd[STDOUT_FILENO]);
|
||||
unix_fcntl_nonblock(fd[STDERR_FILENO]);
|
||||
RsFileUtil::set_fd_nonblock(fd[STDOUT_FILENO]);
|
||||
RsFileUtil::set_fd_nonblock(fd[STDERR_FILENO]);
|
||||
|
||||
mStdOutFD = new RsFdBinInterface(fd[STDOUT_FILENO]);
|
||||
mStdErrFD = new RsFdBinInterface(fd[STDERR_FILENO]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue