By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 2109
Collapse All | Expand All

(-)tdeprint/cups/cupsdconf2/cupsddialog.cpp.orig (+14 lines)
Lines 44-49 Link Here
44
#include <tdeio/passdlg.h>
44
#include <tdeio/passdlg.h>
45
#include <kguiitem.h>
45
#include <kguiitem.h>
46
#include <kprocess.h>
46
#include <kprocess.h>
47
#include <tqprocess.h>
47
48
48
#include <stdlib.h>
49
#include <stdlib.h>
49
#include <signal.h>
50
#include <signal.h>
Lines 70-75 Link Here
70
71
71
int getServerPid()
72
int getServerPid()
72
{
73
{
74
#if defined(__OpenBSD__)
75
	TQProcess *proc = new TQProcess();
76
	proc->addArgument("pgrep");
77
	proc->addArgument("cupsd");
78
	proc->start();
79
	while (proc->isRunning()); //Wait for process to exit
80
	TQString pidString = proc->readLineStdout();
81
	bool ok;
82
	int pid = pidString.toInt(&ok);
83
	if (ok) return pid;
84
	return (-1);
85
#else
73
	TQDir	dir("/proc",TQString::null,TQDir::Name,TQDir::Dirs);
86
	TQDir	dir("/proc",TQString::null,TQDir::Name,TQDir::Dirs);
74
	for (uint i=0;i<dir.count();i++)
87
	for (uint i=0;i<dir.count();i++)
75
	{
88
	{
Lines 88-93 Link Here
88
		}
101
		}
89
	}
102
	}
90
	return (-1);
103
	return (-1);
104
#endif
91
}
105
}
92
106
93
const char* getPassword(const char*)
107
const char* getPassword(const char*)

Return to bug 2109