summaryrefslogtreecommitdiff
path: root/noncore/apps
authorzecke <zecke>2002-10-12 01:05:54 (UTC)
committer zecke <zecke>2002-10-12 01:05:54 (UTC)
commita92703ad1ed767713de21c2389b06434dc223eba (patch) (unidiff)
treeef5368486c2c4472e41c78ec5c7e3c1821e4c88d /noncore/apps
parent78eddaa8057462b0b8e94f10f8673bb9f555061b (diff)
downloadopie-a92703ad1ed767713de21c2389b06434dc223eba.zip
opie-a92703ad1ed767713de21c2389b06434dc223eba.tar.gz
opie-a92703ad1ed767713de21c2389b06434dc223eba.tar.bz2
missing commits
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/filetransfer.h7
-rw-r--r--noncore/apps/opie-console/procctl.cpp1
-rw-r--r--noncore/apps/opie-console/procctl.h3
3 files changed, 7 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/filetransfer.h b/noncore/apps/opie-console/filetransfer.h
index 0829f16..9cc1e8d 100644
--- a/noncore/apps/opie-console/filetransfer.h
+++ b/noncore/apps/opie-console/filetransfer.h
@@ -28,26 +28,27 @@ public:
28 void cancel(); 28 void cancel();
29 29
30private slots: 30private slots:
31 void setupChild(); 31 void setupChild();
32 void slotRead(); 32 void slotRead();
33 void slotProgress( const QStringList& ); 33 void slotProgress( const QStringList& );
34 void slotExec();
34private: 35private:
35 /* 36 /*
36 * FIXME? What does happen if we've 37 * FIXME? What does happen if we've
37 * two FileTransfers at a time? 38 * two FileTransfers at a time?
38 * Have a procctl which does listen 39 * Have a procctl which does listen
39 * for termination and then send a signal 40 * for termination and then send a signal
40 */ 41 */
41 static pid_t m_pid; 42 pid_t m_pid;
42 int m_fd; 43 int m_fd;
43 int m_prog; 44 int m_prog;
44 int m_info[2]; 45 int m_info[2];
45 int m_comm[2]; 46 int m_comm[2];
47 int m_term[2];
46 QString m_file; 48 QString m_file;
47 Type m_type; 49 Type m_type;
48 QSocketNotifier *m_not; 50 QSocketNotifier *m_not;
49 static void signal_handler(int); 51 QSocketNotifier* m_proc;
50 static bool terminate;
51}; 52};
52 53
53#endif 54#endif
diff --git a/noncore/apps/opie-console/procctl.cpp b/noncore/apps/opie-console/procctl.cpp
index ff6bea8..b0b6846 100644
--- a/noncore/apps/opie-console/procctl.cpp
+++ b/noncore/apps/opie-console/procctl.cpp
@@ -68,12 +68,13 @@ int ProcCtl::status(pid_t pid )const{
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}
73void ProcCtl::signal_handler(int) { 73void ProcCtl::signal_handler(int) {
74 qWarning("signal handler");
74 int status; 75 int status;
75 signal( SIGCHLD, signal_handler ); 76 signal( SIGCHLD, signal_handler );
76 pid_t pi = waitpid( -1, &status, WNOHANG ); 77 pid_t pi = waitpid( -1, &status, WNOHANG );
77 78
78 /* 79 /*
79 * find the container for pid 80 * find the container for pid
diff --git a/noncore/apps/opie-console/procctl.h b/noncore/apps/opie-console/procctl.h
index 5e96423..1da7c6d 100644
--- a/noncore/apps/opie-console/procctl.h
+++ b/noncore/apps/opie-console/procctl.h
@@ -19,18 +19,19 @@ struct ProcContainer {
19class ProcCtl { 19class ProcCtl {
20private: 20private:
21 ProcCtl(); 21 ProcCtl();
22public: 22public:
23 ~ProcCtl(); 23 ~ProcCtl();
24 24
25 ProcCtl* self(); 25 static ProcCtl* self();
26 int status(pid_t)const; 26 int status(pid_t)const;
27 void add( pid_t, int fd ); 27 void add( pid_t, int fd );
28 void remove( pid_t ); 28 void remove( pid_t );
29 void remove( ProcContainer ); 29 void remove( ProcContainer );
30private: 30private:
31 static void signal_handler(int); 31 static void signal_handler(int);
32 static ProcContainer* m_last; 32 static ProcContainer* m_last;
33 static ProcCtl* m_self; 33 static ProcCtl* m_self;
34
34}; 35};
35 36
36#endif 37#endif