* shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.

This commit is contained in:
Corinna Vinschen 2004-06-03 19:49:54 +00:00
parent e6f751a5a9
commit e9054f3f7f
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-06-03 Corinna Vinschen <corinna@vinschen.de>
* shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
2004-03-30 Corinna Vinschen <corinna@vinschen.de>
* sysv_shm.cc (shmget): Allow to retrieve shared memory segments

View File

@ -831,6 +831,8 @@ done2:
#ifdef __CYGWIN__
if (!error)
ipcexit_creat_hookthread (td);
else
td->td_retval[0] = -1;
#endif
mtx_unlock(&Giant);
return (error);