semctl with IPC_STAT command should return zero in case of success, see: semctl(2) http://www.opengroup.org/onlinepubs/009695399/functions/semctl.html because of a bug in linux_semctl() a positive value is returned: td_retval is assigned a value for both LINUX_IPC_STAT and LINUX_SEM_STAT this breaks some linux applications with error check "semctl() != 0", while applications with error check "semctl() < 0" remain happy. among affected applications is IBM MQ / WEMPS. Fix: apply the following patch How-To-Repeat: write a small test program or just look at the code
Responsible Changed From-To: freebsd-bugs->emulation Reassign to appropriate mailing list.
State Changed From-To: open->closed Fix comitted, thank you for reporting!