summaryrefslogtreecommitdiff
path: root/NonInheritingProcess.hpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2025-09-15 23:04:23 +0200
committerChristoph Berg <myon@debian.org>2025-09-15 23:04:23 +0200
commit0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (patch)
treed702795f99ac38e0cc17e25f0f7e50fa3e05baf9 /NonInheritingProcess.hpp
parent310d05acf2c9233f7e336ae7dd9ffb7b54ca4e62 (diff)
New upstream version 3.0.0~rc1+repackupstream/3.0.0_rc1+repack
Diffstat (limited to 'NonInheritingProcess.hpp')
-rwxr-xr-xNonInheritingProcess.hpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/NonInheritingProcess.hpp b/NonInheritingProcess.hpp
index c38d41ed..cf6cd2b3 100755
--- a/NonInheritingProcess.hpp
+++ b/NonInheritingProcess.hpp
@@ -1,35 +1,35 @@
-#ifndef NON_INHERITING_PROCESS_HPP__
-#define NON_INHERITING_PROCESS_HPP__
-
-#include <QProcess>
-#include "pimpl_h.hpp"
-
-class QObject;
-
-//
-// class NonInheritingProcess - Manage a process without it inheriting
-// all inheritable handles
-//
-// On MS Windows QProcess creates sub-processes which inherit all
-// inheritable handles, and handles on Windows are inheritable by
-// default. This can cause the lifetime of objects to be unexpectedly
-// extended, which in turn can cause unexpected errors. The motivation
-// for this class was implementing log file rotation using the Boost
-// log library. The current log file's handle gets inherited by any
-// long running sub-process started by QProcess and that causes a
-// sharing violation when attempting to rename the log file on
-// rotation, even though the log library closes the current log file
-// before trying to rename it.
-//
-class NonInheritingProcess
- : public QProcess
-{
-public:
- NonInheritingProcess (QObject * parent = nullptr);
- ~NonInheritingProcess ();
-
-private:
- class impl;
- pimpl<impl> m_;
-};
-#endif
+#ifndef NON_INHERITING_PROCESS_HPP__
+#define NON_INHERITING_PROCESS_HPP__
+
+#include <QProcess>
+#include "pimpl_h.hpp"
+
+class QObject;
+
+//
+// class NonInheritingProcess - Manage a process without it inheriting
+// all inheritable handles
+//
+// On MS Windows QProcess creates sub-processes which inherit all
+// inheritable handles, and handles on Windows are inheritable by
+// default. This can cause the lifetime of objects to be unexpectedly
+// extended, which in turn can cause unexpected errors. The motivation
+// for this class was implementing log file rotation using the Boost
+// log library. The current log file's handle gets inherited by any
+// long running sub-process started by QProcess and that causes a
+// sharing violation when attempting to rename the log file on
+// rotation, even though the log library closes the current log file
+// before trying to rename it.
+//
+class NonInheritingProcess
+ : public QProcess
+{
+public:
+ NonInheritingProcess (QObject * parent = nullptr);
+ ~NonInheritingProcess ();
+
+private:
+ class impl;
+ pimpl<impl> m_;
+};
+#endif