openbsd-ports/x11/kde/libs3/patches/patch-kdesu_process_cpp
espie af7e1f85d0 basic import of kde 3.1.95, still missing a few parts.
TODO:
- compile the missing packages.
- redo konsole fixes for our ttys.
- figure out why kuickshow is broken.
- make sure we get all dependencies.
- repair kscd.
- find out why nsplugins does not like the native jdk.
- figure out how to get kvim to work.
- change filenames or adjust check-lib-depends to cope.
2004-02-01 14:59:21 +00:00

20 lines
542 B
Plaintext

$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()
while (1)
{
- FD_SET(m_Fd, &fds);
- 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);
+ }
if (ret == -1)
{
if (errno != EINTR)