2004-02-01 09:59:21 -05:00
|
|
|
$OpenBSD: patch-kdesu_process_cpp,v 1.7 2004/02/01 14:59:23 espie Exp $
|
|
|
|
--- kdesu/process.cpp.orig 2003-11-30 10:46:50.000000000 +0100
|
|
|
|
+++ kdesu/process.cpp 2004-01-19 14:40:46.000000000 +0100
|
|
|
|
@@ -421,8 +421,13 @@ int PtyProcess::waitForChild()
|
|
|
|
|
2002-05-15 13:19:44 -04:00
|
|
|
while (1)
|
|
|
|
{
|
|
|
|
- FD_SET(m_Fd, &fds);
|
2004-02-01 09:59:21 -05:00
|
|
|
- int ret = select(m_Fd+1, &fds, 0L, 0L, 0L);
|
|
|
|
+ int ret = 0;
|
|
|
|
+
|
|
|
|
+ if (m_Fd != -1)
|
|
|
|
+ {
|
|
|
|
+ FD_SET(m_Fd, &fds);
|
|
|
|
+ ret = select(m_Fd+1, &fds, 0L, 0L, 0L);
|
|
|
|
+ }
|
2002-05-15 13:19:44 -04:00
|
|
|
if (ret == -1)
|
|
|
|
{
|
2004-02-01 09:59:21 -05:00
|
|
|
if (errno != EINTR)
|