summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/procctl.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/procctl.cpp') (more/less context) (ignore 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 @@
7 7
8ProcContainer *ProcCtl::m_last = 0; 8ProcContainer *ProcCtl::m_last = 0;
9ProcCtl* ProcCtl::m_self = 0;
9 10
10ProcCtl::ProcCtl() { 11ProcCtl::ProcCtl() {
@@ -13,4 +14,9 @@ ProcCtl::ProcCtl() {
13ProcCtl::~ProcCtl() { 14ProcCtl::~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 ) {
16 ProcContainer * con = new ProcContainer; 22 ProcContainer * con = new ProcContainer;