Path: utzoo!attcan!uunet!wuarchive!swbatl!texbell!texsun!newstop!sun!kimba!hvr From: hvr@kimba.Sun.COM (Heather Rose) Newsgroups: comp.windows.x Subject: Re: XView notify_interpose_wait3_func error? Message-ID: <132559@sun.Eng.Sun.COM> Date: 6 Mar 90 03:31:51 GMT References: <5723@crdgw1.crd.ge.com> Sender: news@sun.Eng.Sun.COM Reply-To: hvr@sun.UUCP (Heather Rose) Organization: Sun Microsystems, Mountain View Lines: 27 In article <5723@crdgw1.crd.ge.com> barnett@crdgw1.ge.com (Bruce Barnett) writes: > > I am trying to write a XView program that detects when a child >process running in a TERMSW window dies, and allows the user to >optionally restart the application. I am using the >notify_interpose_wait3_func error call described on Page 210 in the >XView manual. > > > child_pid = (int) xv_get(terminal_sw, TTY_PID); > if ( child_pid ) > notify_interpose_wait3_func(terminal_sw, my_wait3, child_pid); > >I get an error: > XView warning: Notifier error: No condition for client This error message means "There is no event handler of the type specified" according to page 73 in the SunView System Programmer's Guide. Since one could do this in SunView, the ttysw would register a default notify_set_wait3_func() on the tty's child process, this would be a bug. The workaround is to use the function notify_set_wait3_func instead of notify_interpose_wait3_func. Regards, Heather