Fixes #41013
Fixes #41088
--- /dev/null
+ o Minor bugfixes (bridges, pluggable transport):
+ - Fix a bug causing the initial tor process to hang intead of exiting with
+ RunAsDaemon, when pluggable transports are used.
+ Fixes bug 41088; bugfix on 0.4.9.1-alpha.
lib/ctime/*.h
lib/err/*.h
lib/evloop/*.h
+lib/fdio/*.h
lib/fs/*.h
lib/intmath/*.h
lib/log/*.h
#ifndef _WIN32
+#include "lib/fdio/fdio.h"
#include "lib/fs/files.h"
#include "lib/log/log.h"
#include "lib/thread/threads.h"
return 0;
start_daemon_called = 1;
- if (pipe(daemon_filedes)) {
+ if (tor_pipe_cloexec(daemon_filedes)) {
/* LCOV_EXCL_START */
log_err(LD_GENERAL,"pipe failed; exiting. Error was %s", strerror(errno));
exit(1); // exit ok: during daemonize, pipe failed.