question on Linux emulation and semget error

Per olof Ljungmark peo at intersonic.se
Wed Apr 23 20:28:46 UTC 2008


Hi,

We have recently upgraded a machine that runs a Linux app from 4.11 to 
7-STABLE. Most things are just fine apart from the app can only be 
started once. If stopped and then restarted, we see
"semget error
Server Stopped"

Googling and reading led me to ipcs and ipcrm:
(after stopping the app)
#ipcs -c
T    ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP

Shared Memory:
T    ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP
m    65536   1330791762 --rwarwarwa     root    wheel     root    wheel

Semaphores:
T    ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP
s    262144   1332897154 --rwarwarwa     root    wheel     root    wheel

# ipcrm -s 262144

and then the app will start without any problem. The info stored in 
memory is the license key apparently and it is not unloaded with the 
app, or rather, daemon.

How can I get rid of this? We did not see this on 4.11.

--per


More information about the freebsd-questions mailing list