home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!olivea!gossip.pyramid.com!pyramid!unify!openlook!openlook-request
- From: sinan@Mtesol.boeing.com (Sinan Karasu)
- Newsgroups: comp.windows.open-look
- Subject: XView3 on concurrent again
- Message-ID: <f8me8p@openlook.Unify.Com>
- Date: 11 Sep 92 20:44:36 GMT
- Sender: news@Unify.Com
- Lines: 33
-
- Here is the snippet of code that I was talking about
- (this is from libxview/ttysw/tty_init.c )
-
- When this gets executed on a concurrent (SVR3 + BSD 4.3 ? )
- the stuff program sends to STDOUT still goes to the parent
- xterm.Remember that we are NOT doing a setsid (it does not
- exist on concurrent) we do a setpgrp(0,0) instead....
-
- Thanx for any responses I may get....
- Sinan
- I wonder if the problem is with printf ??? hmmm....
-
- -------------------------------------------------------------------
-
-
- vec.sv_handler = SIG_DFL;
- vec.sv_mask = vec.sv_onstack = 0;
- sigvec(SIGWINCH, &vec, 0);
- /*
- * Become session leader, change process group of child
- * process (me at this point in code) so
- * its signal stuff doesn't affect the terminal emulator.
- */
- setsid();
- vec.sv_handler = SIG_IGN;
- vec.sv_mask = vec.sv_onstack = 0;
- sigvec(SIGTTOU, &vec, &ovec);
-
- close(ttysw->ttysw_tty);
-
- /* Make the following file descriptor be my controlling terminal */
- ttysw->ttysw_tty = open("/dev/tty", O_RDWR, 0); /* open master tty* */
- sigvec(SIGTTOU, &ovec, 0);
-