Diffstat (limited to 'noncore/apps/opie-console/procctl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/procctl.cpp | 6 |
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 | |||
@@ -6,12 +6,18 @@ | |||
6 | #include "procctl.h" | 6 | #include "procctl.h" |
7 | 7 | ||
8 | ProcContainer *ProcCtl::m_last = 0; | 8 | ProcContainer *ProcCtl::m_last = 0; |
9 | ProcCtl* ProcCtl::m_self = 0; | ||
9 | 10 | ||
10 | ProcCtl::ProcCtl() { | 11 | ProcCtl::ProcCtl() { |
11 | signal( SIGCHLD, signal_handler ); | 12 | signal( SIGCHLD, signal_handler ); |
12 | } | 13 | } |
13 | ProcCtl::~ProcCtl() { | 14 | ProcCtl::~ProcCtl() { |
14 | } | 15 | } |
16 | ProcCtl* ProcCtl::self() { | ||
17 | if (!m_self ) { | ||
18 | m_self = new ProcCtl; | ||
19 | } | ||
20 | } | ||
15 | void ProcCtl::add(pid_t pi, int fd ) { | 21 | void ProcCtl::add(pid_t pi, int fd ) { |
16 | ProcContainer * con = new ProcContainer; | 22 | ProcContainer * con = new ProcContainer; |
17 | //memset(con, 0, sizeof(con) ); | 23 | //memset(con, 0, sizeof(con) ); |