Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!spuxll!abnji!u1100a!pyuxww!gamma!epsilon!zeta!sabre!bellcore!decvax!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.unix-wizards Subject: Re: Help! (on ioctl system call) Message-ID: <2298@sun.uucp> Date: Thu, 13-Jun-85 02:07:05 EDT Article-I.D.: sun.2298 Posted: Thu Jun 13 02:07:05 1985 Date-Received: Sat, 15-Jun-85 09:29:58 EDT References: <651@sphinx.UChicago.UUCP> Organization: Sun Microsystems, Inc. Lines: 11 > I'm having problems with using the ioctl system call. The problem is not with the "ioctl" system call but with the specific "ioctl" call you're using, namely TIOCSPGRP. If a process attempts to do a TRIOCSPGRP on its control terminal and it isn't in the same process group as the terminal, the process gets a SIGTTOU signal and stops (which is why the state field of the "ps" reports T). Moral: do the TIOCSPGRP first and then do the "setpgrp" on yourself second. Guy Harris