Xref: utzoo comp.unix.programmer:1874 comp.unix.internals:2879 comp.bugs.4bsd:1813 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!cbnewsl!urban From: urban@cbnewsl.att.com (john.urban) Newsgroups: comp.unix.programmer,comp.unix.internals,comp.bugs.4bsd Subject: Re: Is this a possible bug in SunOS setpgrp() ? Message-ID: <1991May21.175942.28700@cbnewsl.att.com> Date: 21 May 91 17:59:42 GMT References: <1991May21.022214.1189@sserve.cc.adfa.oz.au> Organization: AT&T Bell Laboratories Lines: 25 In article <1991May21.022214.1189@sserve.cc.adfa.oz.au> wkt@csadfa.cs.adfa.oz.au (Warren Toomey) writes: >I include a short program which appears to demonstrate a bug in the >setpgrp() under SunOS 4.1.1. The program works under Pyramid OSx, and >I think should work under previous version of SunOS. If anybody can show >me that the bug is in fact a programming error I'd be most happy! > >Thanks in advance, When fred is compiled on AT&T UNIX System V/x86 Release 4.0 Version 2.1, I get: $ ./fred Forked, now we pause() Writing to stdout $ If I then change fred and uncomment the 'bug' line I get: $ ./fred Forked, now we pause() Can I write?? Writing to stdout $ Sincerely, John Ben Urban