[haiku-commits] Re: haiku: hrev50954 - src/system/libroot/posix/pthread

  • From: Jérôme Duval <jerome.duval@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 14 Feb 2017 21:28:59 +0100

Hi Rene,

Am 14.02.2017 8:58 nachm. schrieb "Rene Gollent" <anevilyak@xxxxxxxxx>:


On Tue, Feb 14, 2017 at 2:51 PM,  <jerome.duval@xxxxxxxxx> wrote:

-       return status;
+       if (status < B_OK)
+               return status;
+       return 0;

Would this be a problem if the program is compiled to use the positive
POSIX error codes define?


I believe the problematic cases have to be handled in
libposix_error_mapper, and this one seems to be :
http://cgit.haiku-os.org/haiku/tree/src/libs/posix_error_mapper/pthread_thread.cpp#n64

Bye
Jerome

Other related posts: