~ubuntu-branches/ubuntu/karmic/psi/karmic

« back to all changes in this revision

Viewing changes to src/tools/openpgp/gpgproc/sprocess.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2006-01-20 00:20:36 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060120002036-7nw6yo6totip0ee5
Tags: 0.10-2
* Added upstream changelog (Closes: Bug#327748)
* Mention --no-gpg and --no-gpg-agent in manpage (Closes: Bug#204416)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}