From owner-freebsd-ports Mon Oct 13 15:50:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA00514 for ports-outgoing; Mon, 13 Oct 1997 15:50:48 -0700 (PDT) (envelope-from owner-freebsd-ports) Received: from ampersand.home.pc (ztm06-23.dial.xs4all.nl [194.109.32.184]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA00509 for ; Mon, 13 Oct 1997 15:50:41 -0700 (PDT) (envelope-from jh@ampersand.home.pc) Received: from jh by ampersand.home.pc with local (Exim 1.71 #1) id 0xKv8p-0001N3-00; Tue, 14 Oct 1997 00:47:19 +0000 Subject: GDK part of current GTK+ (was: gimp 0.99.13) In-Reply-To: <874t6mio95.fsf@phaedrus.uchicago.edu> from stephen farrell at "Oct 12, 97 05:56:54 pm" To: stephen@farrell.org (stephen farrell) Date: Tue, 14 Oct 1997 00:47:19 +0000 (GMT) Cc: ports@freebsd.org X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: From: Jeroen Hogeveen Sender: owner-freebsd-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi Brian and Steve, > "Brian N. Handy" writes: > [snipped] > > Also be sure to move the shmctl(x_shm_info->shmid, IPC_RMID, 0) :-) > > This causes the XShmAttach failure in gdkimage.c > > Hm... I guess I'll take him at face value and translate "move" into > "remove". I don't exactly comprehend what the "face value" means.. however: That's not what I've meant, I'm sorry I have not been that verbose :-) The following works for me: Move the shmctl (x_shm_info->shmid, IPC_RMID, 0); statement at line 236 below line 242 with the XSync (private->xdisplay, False); statement. Excerpt from the ChangeLog: * gdk/gdkimage.c: Applied Tim Janik's patch to mark shm segments as IPC_RMID so that they are automatically removed always. So I think it's best to leave the shmctl in there, but I'm very likely to be wrong :-) Hope this helps, please let me know :) Bye, Jeroen