* shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
This commit is contained in:
		| @@ -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> | 2004-03-30  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* sysv_shm.cc (shmget): Allow to retrieve shared memory segments | 	* sysv_shm.cc (shmget): Allow to retrieve shared memory segments | ||||||
|   | |||||||
| @@ -831,6 +831,8 @@ done2: | |||||||
| #ifdef __CYGWIN__ | #ifdef __CYGWIN__ | ||||||
| 	if (!error) | 	if (!error) | ||||||
| 		ipcexit_creat_hookthread (td); | 		ipcexit_creat_hookthread (td); | ||||||
|  | 	else | ||||||
|  | 		td->td_retval[0] = -1; | ||||||
| #endif | #endif | ||||||
| 	mtx_unlock(&Giant); | 	mtx_unlock(&Giant); | ||||||
| 	return (error); | 	return (error); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user