mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 13:02:59 +00:00
storing return value of write, may want to use in the future. this gets rid of warning.
This commit is contained in:
parent
4cb3529161
commit
6effe033d6
@ -244,13 +244,13 @@ ProcLauncher::ProcRef ProcLauncher::Launch(Spec *&to_launch) {
|
||||
if(dup2(outfd, STDOUT_FILENO) == -1) {
|
||||
fprintf(stderr, "Unable to duplicate FD %d to %d. Log file will be empty: %s\n", outfd, STDOUT_FILENO, strerror(errno));
|
||||
const char *err = "Unable to redirect stdout into this file. That sucks.";
|
||||
write(outfd, err, strlen(err));
|
||||
auto writeSize = write(outfd, err, strlen(err));
|
||||
}
|
||||
close(STDERR_FILENO);
|
||||
if(dup2(outfd, STDERR_FILENO) == -1) {
|
||||
//can no longer print to screen..
|
||||
const char *err = "Unable to redirect stderr into this file. You might miss some error info in this log.";
|
||||
write(outfd, err, strlen(err));
|
||||
auto writeSize = write(outfd, err, strlen(err));
|
||||
}
|
||||
close(STDIN_FILENO);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user