Diffstat (limited to 'noncore/apps/opie-console/procctl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/procctl.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/procctl.cpp b/noncore/apps/opie-console/procctl.cpp index d1cfaf6..ff6bea8 100644 --- a/noncore/apps/opie-console/procctl.cpp +++ b/noncore/apps/opie-console/procctl.cpp | |||
@@ -62,25 +62,24 @@ void ProcCtl::remove( ProcContainer con ) { | |||
62 | remove( con.pid ); | 62 | remove( con.pid ); |
63 | } | 63 | } |
64 | int ProcCtl::status(pid_t pid )const{ | 64 | int ProcCtl::status(pid_t pid )const{ |
65 | ProcContainer *con = m_last; | 65 | ProcContainer *con = m_last; |
66 | while (con) { | 66 | while (con) { |
67 | if (con->pid == pid ) | 67 | if (con->pid == pid ) |
68 | return con->status; | 68 | return con->status; |
69 | con = con->prev; | 69 | con = con->prev; |
70 | } | 70 | } |
71 | return -1; | 71 | return -1; |
72 | } | 72 | } |
73 | void ProcCtl::signal_handler(int) { | 73 | void ProcCtl::signal_handler(int) { |
74 | qWarning("signal handler in ProcCtl"); | ||
75 | int status; | 74 | int status; |
76 | signal( SIGCHLD, signal_handler ); | 75 | signal( SIGCHLD, signal_handler ); |
77 | pid_t pi = waitpid( -1, &status, WNOHANG ); | 76 | pid_t pi = waitpid( -1, &status, WNOHANG ); |
78 | 77 | ||
79 | /* | 78 | /* |
80 | * find the container for pid | 79 | * find the container for pid |
81 | * | 80 | * |
82 | */ | 81 | */ |
83 | if ( pi < 0 ) { | 82 | if ( pi < 0 ) { |
84 | return; | 83 | return; |
85 | } | 84 | } |
86 | 85 | ||