[openrtm-commit:00017] r2071 - trunk/OpenRTM-aist/src/lib/coil/posix/coil
openrtm at openrtm.org
openrtm at openrtm.org
Wed Apr 27 13:43:18 JST 2011
Author: kurihara
Date: 2011-04-27 13:43:17 +0900 (Wed, 27 Apr 2011)
New Revision: 2071
Modified:
trunk/OpenRTM-aist/src/lib/coil/posix/coil/Routing.cpp
Log:
Fixed the problem of the zombie process. refs 2065
Modified: trunk/OpenRTM-aist/src/lib/coil/posix/coil/Routing.cpp
===================================================================
--- trunk/OpenRTM-aist/src/lib/coil/posix/coil/Routing.cpp 2011-04-04 22:48:42 UTC (rev 2070)
+++ trunk/OpenRTM-aist/src/lib/coil/posix/coil/Routing.cpp 2011-04-27 04:43:17 UTC (rev 2071)
@@ -21,6 +21,7 @@
#include <netdb.h> // gethostbyname
#include <arpa/inet.h> // inet_ntoa
#include <netinet/in.h> // sockaddr_in
+#include <sys/wait.h>
#include <coil/Routing.h>
#include <coil/stringutil.h>
@@ -104,6 +105,7 @@
{
dest_if = vs[ifname_pos];
pclose(fp);
+ wait(NULL);
return true;
}
#endif // COIL_OS_FREEBSD || COIL_OS_DARWIN || COIL_OS_CYGWIN
@@ -119,6 +121,7 @@
#endif // COIL_OS_LINUX
} while (!feof(fp));
pclose(fp);
+ wait(NULL);
return false;
}
@@ -156,10 +159,12 @@
{
ipaddr = vs[1];
pclose(fp);
+ wait(NULL);
return true;
}
} while (!feof(fp));
pclose(fp);
+ wait(NULL);
return false;
}
More information about the openrtm-commit
mailing list