summaryrefslogtreecommitdiff
authortille <tille>2002-06-28 17:01:13 (UTC)
committer tille <tille>2002-06-28 17:01:13 (UTC)
commit8176526fc61f4b4012021a4324aee592463dbb3a (patch) (side-by-side diff)
tree928ffd2ce9c00df7d763e1e34b0f137192975c09
parent986a23a683f53ab612be03b56dd9bc7c1aeb3651 (diff)
downloadopie-8176526fc61f4b4012021a4324aee592463dbb3a.zip
opie-8176526fc61f4b4012021a4324aee592463dbb3a.tar.gz
opie-8176526fc61f4b4012021a4324aee592463dbb3a.tar.bz2
setpgid(0,0); thanks to sandman
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/main.cpp1
-rw-r--r--noncore/unsupported/oipkg/package.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/main.cpp b/noncore/unsupported/oipkg/main.cpp
index f72540c..c579df8 100644
--- a/noncore/unsupported/oipkg/main.cpp
+++ b/noncore/unsupported/oipkg/main.cpp
@@ -5,12 +5,13 @@
#include <qstring.h>
//#include <qmessagebox.h>
int debugLevel;
int main( int argc, char ** argv )
{
+ setpgid(0,0);
printf("This is oipkg\n");
printf("$Id$\n");
debugLevel = 2;
if (argc > 1)
{
debugLevel = QString ( argv[1] ).toInt();
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp
index 8bbdd77..0cd93bf 100644
--- a/noncore/unsupported/oipkg/package.cpp
+++ b/noncore/unsupported/oipkg/package.cpp
@@ -50,12 +50,13 @@ Package::Package( QStringList pack, PackageManagerSettings *s , QObject *parent,
{
init(s);
parsePackage( pack );
}
Package::Package( QString n, PackageManagerSettings *s, QObject *parent, const char *name )
+ : QObject(parent,name)
{
init(s);
if ( !QFile::exists( n ) )
{
_name = QString( n );
}else{
@@ -64,12 +65,13 @@ Package::Package( QString n, PackageManagerSettings *s, QObject *parent, const c
_useFileName = true;
_fileName = QString( n );
}
}
Package::Package( Package *pi, QObject *parent, const char *name )
+ : QObject(parent,name)
{
init(pi->settings);
copyValues( pi );
}