[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#248192: setpshared on amd64 not working?



Package: libc6
Version: 2.3.2.ds1-12

It seems that pthread_condattr_setpshared and
pthread_mutexattr_setpshared both return 38 (ENOSYS) when called
on amd64.

Example code:

	pthread_condattr_t condattr;
	printf("%d\n", pthread_condattr_init(&condattr));
	printf("%d\n", pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED));

prints:
0
38

The same test on i386 returns:
0
0

I find it rather strange because the code says:
  /* For now it is not possible to shared a conditional variable. */
  if (pshared != PTHREAD_PROCESS_PRIVATE)
    return ENOSYS;

Am I missing something?


Kurt




Reply to: