From owner-freebsd-hackers Mon Oct 9 12:50:05 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA20192 for hackers-outgoing; Mon, 9 Oct 1995 12:50:05 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA20187 for ; Mon, 9 Oct 1995 12:50:00 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id FAA21844; Tue, 10 Oct 1995 05:49:13 +1000 Date: Tue, 10 Oct 1995 05:49:13 +1000 From: Bruce Evans Message-Id: <199510091949.FAA21844@godzilla.zeta.org.au> To: imp@village.org, stu@cisco.com Subject: Re: FleeBSD and XNTPD Cc: hackers@freebsd.org, pst@cisco.com Sender: owner-hackers@freebsd.org Precedence: bulk >: if (ioctl(rio->fd, TIOCSPGRP, (char*)&pgrp) == -1) { >: syslog(LOG_ERR, "ioctl(TIOCSPGRP) fails for clock I/O: %m"); >: return 1; >: } >You are trying to set the process group of the terminal. This has >nothing to do with async I/O. The F_SETOWN does, however. I'm >surprised that that didn't work. F_SETOWN and TIOCSPGRP do exactly the same thing for ttys. They both specify the process that will obtain async notifications of i/o if such notifications are enabled. Bruce