incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farid Zaripov <Far...@kyiv.vdiweb.com>
Subject [PATCH] RE: svn commit: r472469 - in /incubator/stdcxx/trunk/tests: include/rw_process.h self/0.process.cpp src/process.cpp
Date Thu, 30 Nov 2006 17:15:37 GMT
 > -----Original Message-----
 > From: Martin Sebor [mailto:sebor@roguewave.com]
 > Sent: Thursday, November 30, 2006 12:05 AM
 > To: stdcxx-dev@incubator.apache.org
 > Subject: Re: svn commit: r472469 - in
 > /incubator/stdcxx/trunk/tests: include/rw_process.h
 > self/0.process.cpp src/process.cpp
 >
 > This change is causing link failures Solaris builds.
 > See for example (search for nanosleep):
 > http://people.apache.org/~sebor/stdcxx/results/solaris-10-spar
 > cv9-sunpro-64b-5.8-11s-log.gz.txt
 >
 > On Solaris, the function is defined in the realtime library,
 > librt.so, which we don't link with:
 > http://docs.sun.com/app/docs/doc/816-5171/6mbb6dcoe?a=view#ind
 > exterm-87
 >
 > Please note that nanosleep() is an optional (REALTIME)
 > feature of POSIX that's not required to be provided by
 > conforming implementations, so we can't assume it will be
 > available everywhere:
 > http://www.opengroup.org/onlinepubs/009695399/functions/nanosleep.html

   sleep() can be used instead of nanosleep()?

   ChangeLog:
   * process.cpp: Removed unused #include <time.h>
   (rw_waitpid): Used sleep() instead of nanosleep()
   (rw_process_kill): Corrected timeout value to 1 second

Farid.

Mime
View raw message