summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/procctl.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/procctl.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/procctl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/procctl.cpp b/noncore/apps/opie-console/procctl.cpp
index 6839a84..ff6bea8 100644
--- a/noncore/apps/opie-console/procctl.cpp
+++ b/noncore/apps/opie-console/procctl.cpp
@@ -7,4 +7,5 @@
ProcContainer *ProcCtl::m_last = 0;
+ProcCtl* ProcCtl::m_self = 0;
ProcCtl::ProcCtl() {
@@ -13,4 +14,9 @@ ProcCtl::ProcCtl() {
ProcCtl::~ProcCtl() {
}
+ProcCtl* ProcCtl::self() {
+ if (!m_self ) {
+ m_self = new ProcCtl;
+ }
+}
void ProcCtl::add(pid_t pi, int fd ) {
ProcContainer * con = new ProcContainer;