Dans le cas d'une communication en mode WAIT, c'est le client qui finalement doit rendre la main. Il le fait avec la commande shmfree(). Dans l'exemple suivant, le client envoie deux commande successive en gardant la main puis libère le serveur.
INTER > shmstat=shmput("COMMAND", "@dosomething") INTER > shmstat=shmack() INTER > shmstat=shmwack() INTER > shmstat=shmput("COMMAND", "@dootherthings") INTER > shmstat=shmack() INTER > shmstat=shmwack() INTER > shmstat=shmfree()