Diffstat (limited to 'noncore/apps/opie-console/procctl.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/procctl.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 @@ -1,33 +1,36 @@ #ifndef OPIE_PROC_CTL_H #define OPIE_PROC_CTL_H #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include <signal.h> #include <qmap.h> struct ProcContainer { pid_t pid; int fd; int status; ProcContainer* prev; }; class ProcCtl { -public: +private: ProcCtl(); +public: ~ProcCtl(); + ProcCtl* self(); int status(pid_t)const; void add( pid_t, int fd ); void remove( pid_t ); void remove( ProcContainer ); private: static void signal_handler(int); static ProcContainer* m_last; + static ProcCtl* m_self; }; #endif |