Last change
on this file was 2, checked in by dmik, 19 years ago |
Imported original Psi 0.10 sources from Affinix
|
File size:
632 bytes
|
Line | |
---|
1 | #include"sprocess.h"
|
---|
2 |
|
---|
3 | #include<unistd.h>
|
---|
4 |
|
---|
5 | //----------------------------------------------------------------------------
|
---|
6 | // SProcess
|
---|
7 | //----------------------------------------------------------------------------
|
---|
8 | SProcess::SProcess()
|
---|
9 | :JProcess()
|
---|
10 | {
|
---|
11 | setChildStartingHandler(childStarting);
|
---|
12 | }
|
---|
13 |
|
---|
14 | SProcess::~SProcess()
|
---|
15 | {
|
---|
16 | }
|
---|
17 |
|
---|
18 | void SProcess::setClosePipeList(const QValueList<int> &list)
|
---|
19 | {
|
---|
20 | pipeList = list;
|
---|
21 | }
|
---|
22 |
|
---|
23 | void SProcess::childStarting(JProcess *p)
|
---|
24 | {
|
---|
25 | SProcess *that = (SProcess *)p;
|
---|
26 | // close all pipes
|
---|
27 | for(QValueList<int>::ConstIterator it = that->pipeList.begin(); it != that->pipeList.end(); ++it) {
|
---|
28 | int x = *it;
|
---|
29 | close(x);
|
---|
30 | }
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.