From owner-freebsd-hackers Fri Apr 5 23:35:14 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA12132 for hackers-outgoing; Fri, 5 Apr 1996 23:35:14 -0800 (PST) Received: from time.cdrom.com (time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id XAA12127 for ; Fri, 5 Apr 1996 23:35:12 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.7.5/8.6.9) with SMTP id XAA29162; Fri, 5 Apr 1996 23:34:33 -0800 (PST) To: Bruce Evans cc: hackers@FreeBSD.org Subject: Re: Any clues as to why this fails? In-reply-to: Your message of "Sat, 06 Apr 1996 17:16:20 +1000." <199604060716.RAA14868@godzilla.zeta.org.au> Date: Fri, 05 Apr 1996 23:34:33 -0800 Message-ID: <29160.828776073@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > The test program has many bugs. > - isn't included. OK, OK, so it was just a knocked-together test.. :-) > - printf() gives undefined behaviour in signal handlers. I know that. I just wanted to see if the handler was being called at all, and in this case I'm pretty sure that printf() will perform as advertised since I'm not doing any other I/O. This was just a short test program to illustrate an error, Bruce, not my submission for this year's ACM Turing awards.. :-) In any case, to dispense with the nitpicking and get to the real meat of the issue: > except ttys, sockets or perhaps pipes. To work as documented in fcntl.3, > F_SETOWN would need to have a pgrp entry in the filedesc struct. This > would probably be useful - it would allow sending SIGIO to arbitrary > sets of sufficiently privileged processes. Sounds fine to me - did I hear an implicit hand being raised here, or should one of the rest of us go about doing this? :-) What Thomas wants is not unreasonable here - polling the mouse with SIGIO might not be elegant, but I can certainly understand the desire to have it work. I can predict that his next question after reading the above will be "Uh, OK. So.... Can I rely on this working anytime soon?" and it'd be nice to have some semblance of an answer in advance. Jordan