summaryrefslogtreecommitdiff
path: root/noncore/apps
Unidiff
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/procctl.cpp6
-rw-r--r--noncore/apps/opie-console/procctl.h5
2 files changed, 10 insertions, 1 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
@@ -8,2 +8,3 @@
8ProcContainer *ProcCtl::m_last = 0; 8ProcContainer *ProcCtl::m_last = 0;
9ProcCtl* ProcCtl::m_self = 0;
9 10
@@ -14,2 +15,7 @@ ProcCtl::~ProcCtl() {
14} 15}
16ProcCtl* ProcCtl::self() {
17 if (!m_self ) {
18 m_self = new ProcCtl;
19 }
20}
15void ProcCtl::add(pid_t pi, int fd ) { 21void ProcCtl::add(pid_t pi, int fd ) {
diff --git a/noncore/apps/opie-console/procctl.h b/noncore/apps/opie-console/procctl.h
index e2161f3..5e96423 100644
--- a/noncore/apps/opie-console/procctl.h
+++ b/noncore/apps/opie-console/procctl.h
@@ -19,6 +19,8 @@ struct ProcContainer {
19class ProcCtl { 19class ProcCtl {
20public: 20private:
21 ProcCtl(); 21 ProcCtl();
22public:
22 ~ProcCtl(); 23 ~ProcCtl();
23 24
25 ProcCtl* self();
24 int status(pid_t)const; 26 int status(pid_t)const;
@@ -30,2 +32,3 @@ private:
30 static ProcContainer* m_last; 32 static ProcContainer* m_last;
33 static ProcCtl* m_self;
31}; 34};