summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/procctl.cpp
authorzecke <zecke>2002-10-12 00:40:14 (UTC)
committer zecke <zecke>2002-10-12 00:40:14 (UTC)
commit39b88e5809e50a4951869434b8015c55265fc495 (patch) (unidiff)
treead444833b2c9fd0c672c7dfdcc99b3a33ace8b8d /noncore/apps/opie-console/procctl.cpp
parent0a3ffe7e5657bed4cb77d9bc23457755e2d02591 (diff)
downloadopie-39b88e5809e50a4951869434b8015c55265fc495.zip
opie-39b88e5809e50a4951869434b8015c55265fc495.tar.gz
opie-39b88e5809e50a4951869434b8015c55265fc495.tar.bz2
No does not have any public c'tor
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
@@ -6,12 +6,18 @@
6#include "procctl.h" 6#include "procctl.h"
7 7
8ProcContainer *ProcCtl::m_last = 0; 8ProcContainer *ProcCtl::m_last = 0;
9ProcCtl* ProcCtl::m_self = 0;
9 10
10ProcCtl::ProcCtl() { 11ProcCtl::ProcCtl() {
11 signal( SIGCHLD, signal_handler ); 12 signal( SIGCHLD, signal_handler );
12} 13}
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;
17 //memset(con, 0, sizeof(con) ); 23 //memset(con, 0, sizeof(con) );