2008-08-26 12:52:28 -04:00
|
|
|
$OpenBSD: patch-kdesu_process_cpp,v 1.10 2008/08/26 16:52:29 espie Exp $
|
|
|
|
--- kdesu/process.cpp.orig Tue Aug 19 20:18:14 2008
|
|
|
|
+++ kdesu/process.cpp Thu Aug 21 00:02:14 2008
|
|
|
|
@@ -492,8 +492,13 @@ int PtyProcess::waitForChild()
|
2004-02-01 09:59:21 -05:00
|
|
|
|
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)
|