[PATCH] libpthread: pthread_create: turn ENOMEM to EAGAIN

2012-09-15 Thread Pino Toscano
Hi, it seems that in some occasions (i.e on malloc failure) pthread_create can return ENOMEM, which is not a valid POSIX error number. Attached there is a patch for libpthread to normalize ENOMEM to EAGAIN. Thanks, -- Pino Toscano From 2ee7e1e143784452ef325a0c80c106e972a3ffdc Mon Sep 17

Re: [PATCH] libpthread: pthread_create: turn ENOMEM to EAGAIN

2012-09-15 Thread Samuel Thibault
Pino Toscano, le Sat 15 Sep 2012 19:27:18 +0200, a écrit : it seems that in some occasions (i.e on malloc failure) pthread_create can return ENOMEM, which is not a valid POSIX error number. Attached there is a patch for libpthread to normalize ENOMEM to EAGAIN. Applied, thanks Samuel