Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!tub!tubopal!opal!simon From: simon@opal.tu-berlin.de (Simon Leinen) Newsgroups: comp.windows.x Subject: Re: Twm hangs doing an xhost (request for help) Message-ID: Date: 23 Feb 90 10:51:34 GMT References: <9751@batcomputer.tn.cornell.edu> Sender: news@tubopal.UUCP Distribution: comp Organization: TU Berlin, Fachbereich 20 (Informatik) Lines: 25 In-reply-to: gdykes@batcomputer.tn.cornell.edu's message of 19 Feb 90 17:28:17 GMT To: In article <9751@batcomputer.tn.cornell.edu> gdykes@batcomputer.tn.cornell.edu (Gene Dykes) writes: When running twm, if I click on a menu entry with the following binding: f.exec "xhost hostname" twm just hangs, and I have to kill it off (with great difficulty). I had this problem too, and found two solutions for it. You can simply start xhost in the background, by saying f.exec "xhost hostname" & od you can add a line NoGrabServer to the .twmrc file. I think the problem is that xhost will try to make a connection to the X server, but the server is grabbed by twm while the menu is posted. The menu will not be removed until xhost has returned, so this is a very beautiful case of deadlock. You can also do both of the above, which is what I do. -- Simon Leinen.