home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v22 / 015 < prev    next >
Mailbox/MIME Entity  |  1991-03-07  |  6.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From jsq@cs.utexas.edu Wed Oct 31 20:11:30 1990", ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime application/mbox default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 6a 73 71 | 40 63 73 2e 75 74 65 78 |From jsq|@cs.utex|
|00000010| 61 73 2e 65 64 75 20 20 | 57 65 64 20 4f 63 74 20 |as.edu |Wed Oct |
|00000020| 33 31 20 32 30 3a 31 31 | 3a 33 30 20 31 39 39 30 |31 20:11|:30 1990|
|00000030| 0a 52 65 63 65 69 76 65 | 64 3a 20 66 72 6f 6d 20 |.Receive|d: from |
|00000040| 63 73 2e 75 74 65 78 61 | 73 2e 65 64 75 20 62 79 |cs.utexa|s.edu by|
|00000050| 20 75 75 6e 65 74 2e 75 | 75 2e 6e 65 74 20 28 35 | uunet.u|u.net (5|
|00000060| 2e 36 31 2f 31 2e 31 34 | 29 20 77 69 74 68 20 53 |.61/1.14|) with S|
|00000070| 4d 54 50 20 0a 09 69 64 | 20 41 41 32 36 39 32 32 |MTP ..id| AA26922|
|00000080| 3b 20 57 65 64 2c 20 33 | 31 20 4f 63 74 20 39 30 |; Wed, 3|1 Oct 90|
|00000090| 20 32 30 3a 31 31 3a 33 | 30 20 2d 30 35 30 30 0a | 20:11:3|0 -0500.|
|000000a0| 50 6f 73 74 65 64 2d 44 | 61 74 65 3a 20 33 31 20 |Posted-D|ate: 31 |
|000000b0| 4f 63 74 20 39 30 20 30 | 39 3a 30 38 3a 30 30 20 |Oct 90 0|9:08:00 |
|000000c0| 47 4d 54 0a 52 65 63 65 | 69 76 65 64 3a 20 62 79 |GMT.Rece|ived: by|
|000000d0| 20 63 73 2e 75 74 65 78 | 61 73 2e 65 64 75 20 28 | cs.utex|as.edu (|
|000000e0| 35 2e 36 34 2f 31 2e 38 | 32 29 20 0a 46 72 6f 6d |5.64/1.8|2) .From|
|000000f0| 3a 20 62 72 6e 73 74 6e | 64 40 6b 72 61 6d 64 65 |: brnstn|d@kramde|
|00000100| 6e 2e 61 63 66 2e 6e 79 | 75 2e 65 64 75 20 28 44 |n.acf.ny|u.edu (D|
|00000110| 61 6e 20 42 65 72 6e 73 | 74 65 69 6e 29 0a 4e 65 |an Berns|tein).Ne|
|00000120| 77 73 67 72 6f 75 70 73 | 3a 20 63 6f 6d 70 2e 73 |wsgroups|: comp.s|
|00000130| 74 64 2e 75 6e 69 78 0a | 53 75 62 6a 65 63 74 3a |td.unix.|Subject:|
|00000140| 20 52 65 3a 20 2f 64 65 | 76 2f 74 74 79 20 69 6d | Re: /de|v/tty im|
|00000150| 70 6c 65 6d 65 6e 74 65 | 64 20 61 73 20 2f 64 65 |plemente|d as /de|
|00000160| 76 2f 66 64 2f 33 0a 4d | 65 73 73 61 67 65 2d 49 |v/fd/3.M|essage-I|
|00000170| 64 3a 20 3c 31 34 31 38 | 38 40 63 73 2e 75 74 65 |d: <1418|8@cs.ute|
|00000180| 78 61 73 2e 65 64 75 3e | 0a 52 65 66 65 72 65 6e |xas.edu>|.Referen|
|00000190| 63 65 73 3a 20 3c 31 33 | 38 37 38 40 63 73 2e 75 |ces: <13|878@cs.u|
|000001a0| 74 65 78 61 73 2e 65 64 | 75 3e 20 3c 31 34 31 30 |texas.ed|u> <1410|
|000001b0| 33 40 63 73 2e 75 74 65 | 78 61 73 2e 65 64 75 3e |3@cs.ute|xas.edu>|
|000001c0| 20 3c 31 34 31 36 32 40 | 63 73 2e 75 74 65 78 61 | <14162@|cs.utexa|
|000001d0| 73 2e 65 64 75 3e 0a 53 | 65 6e 64 65 72 3a 20 6a |s.edu>.S|ender: j|
|000001e0| 73 71 40 63 73 2e 75 74 | 65 78 61 73 2e 65 64 75 |sq@cs.ut|exas.edu|
|000001f0| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 49 |.Organiz|ation: I|
|00000200| 52 0a 58 2d 53 75 62 6d | 69 73 73 69 6f 6e 73 3a |R.X-Subm|issions:|
|00000210| 20 73 74 64 2d 75 6e 69 | 78 40 75 75 6e 65 74 2e | std-uni|x@uunet.|
|00000220| 75 75 2e 6e 65 74 0a 44 | 61 74 65 3a 20 33 31 20 |uu.net.D|ate: 31 |
|00000230| 4f 63 74 20 39 30 20 30 | 39 3a 30 38 3a 30 30 20 |Oct 90 0|9:08:00 |
|00000240| 47 4d 54 0a 52 65 70 6c | 79 2d 54 6f 3a 20 73 74 |GMT.Repl|y-To: st|
|00000250| 64 2d 75 6e 69 78 40 75 | 75 6e 65 74 2e 75 75 2e |d-unix@u|unet.uu.|
|00000260| 6e 65 74 0a 54 6f 3a 20 | 73 74 64 2d 75 6e 69 78 |net.To: |std-unix|
|00000270| 40 75 75 6e 65 74 2e 75 | 75 2e 6e 65 74 0a 0a 53 |@uunet.u|u.net..S|
|00000280| 75 62 6d 69 74 74 65 64 | 2d 62 79 3a 20 62 72 6e |ubmitted|-by: brn|
|00000290| 73 74 6e 64 40 6b 72 61 | 6d 64 65 6e 2e 61 63 66 |stnd@kra|mden.acf|
|000002a0| 2e 6e 79 75 2e 65 64 75 | 20 28 44 61 6e 20 42 65 |.nyu.edu| (Dan Be|
|000002b0| 72 6e 73 74 65 69 6e 29 | 0a 0a 49 6e 20 61 72 74 |rnstein)|..In art|
|000002c0| 69 63 6c 65 20 3c 31 34 | 31 36 32 40 63 73 2e 75 |icle <14|162@cs.u|
|000002d0| 74 65 78 61 73 2e 65 64 | 75 3e 20 73 6b 65 40 70 |texas.ed|u> ske@p|
|000002e0| 6b 6d 61 62 2e 73 65 20 | 28 4b 72 69 73 74 6f 66 |kmab.se |(Kristof|
|000002f0| 66 65 72 20 45 72 69 6b | 73 73 6f 6e 29 20 77 72 |fer Erik|sson) wr|
|00000300| 69 74 65 73 3a 0a 3e 20 | 5b 20 49 20 64 6f 6e 27 |ites:.> |[ I don'|
|00000310| 74 20 71 75 69 74 65 20 | 75 6e 64 65 72 73 74 61 |t quite |understa|
|00000320| 6e 64 20 77 68 79 20 74 | 68 65 20 73 75 62 6d 69 |nd why t|he submi|
|00000330| 74 74 6f 72 20 77 61 6e | 74 73 20 74 6f 20 73 70 |ttor wan|ts to sp|
|00000340| 6c 69 74 20 74 68 69 73 | 20 66 72 6f 6d 20 74 68 |lit this| from th|
|00000350| 65 0a 3e 20 74 68 72 65 | 61 64 20 6f 66 20 52 65 |e.> thre|ad of Re|
|00000360| 3a 20 46 69 6c 65 20 73 | 79 73 74 65 6d 20 6e 61 |: File s|ystem na|
|00000370| 6d 65 20 73 70 61 63 65 | 2c 20 62 75 74 20 6c 65 |me space|, but le|
|00000380| 74 27 73 20 67 69 76 65 | 20 69 74 20 61 20 74 72 |t's give| it a tr|
|00000390| 79 20 61 6e 64 20 73 65 | 65 20 77 68 61 74 0a 3e |y and se|e what.>|
|000003a0| 20 68 61 70 70 65 6e 73 | 2c 20 65 68 3f 20 20 2d | happens|, eh? -|
|000003b0| 6d 6f 64 20 5d 0a 0a 49 | 74 20 69 73 20 61 20 64 |mod ]..I|t is a d|
|000003c0| 69 66 66 65 72 65 6e 74 | 20 69 73 73 75 65 2e 20 |ifferent| issue. |
|000003d0| 54 68 65 72 65 20 61 72 | 65 20 6f 62 6a 65 63 74 |There ar|e object|
|000003e0| 69 76 65 20 61 64 76 61 | 6e 74 61 67 65 73 20 74 |ive adva|ntages t|
|000003f0| 6f 20 65 6c 69 6d 69 6e | 61 74 69 6e 67 0a 2f 64 |o elimin|ating./d|
|00000400| 65 76 2f 74 74 79 2c 20 | 6b 65 72 6e 65 6c 20 63 |ev/tty, |kernel c|
|00000410| 6f 6e 74 72 6f 6c 6c 69 | 6e 67 20 74 65 72 6d 69 |ontrolli|ng termi|
|00000420| 6e 61 6c 73 2c 20 61 6e | 64 20 50 4f 53 49 58 20 |nals, an|d POSIX |
|00000430| 73 65 73 73 69 6f 6e 73 | 3a 20 74 68 65 20 6b 65 |sessions|: the ke|
|00000440| 72 6e 65 6c 0a 62 65 63 | 6f 6d 65 73 20 6e 6f 74 |rnel.bec|omes not|
|00000450| 69 63 65 61 62 6c 79 20 | 73 6d 61 6c 6c 65 72 2c |iceably |smaller,|
|00000460| 20 74 68 65 20 50 4f 53 | 49 58 20 73 74 61 6e 64 | the POS|IX stand|
|00000470| 61 72 64 20 62 65 63 6f | 6d 65 73 20 73 65 76 65 |ard beco|mes seve|
|00000480| 72 61 6c 20 70 61 67 65 | 73 0a 74 68 69 6e 6e 65 |ral page|s.thinne|
|00000490| 72 20 61 6e 64 20 61 20 | 6c 6f 74 20 65 61 73 69 |r and a |lot easi|
|000004a0| 65 72 20 74 6f 20 69 6d | 70 6c 65 6d 65 6e 74 2c |er to im|plement,|
|000004b0| 20 70 72 6f 67 72 61 6d | 6d 65 72 73 20 6e 6f 20 | program|mers no |
|000004c0| 6c 6f 6e 67 65 72 20 68 | 61 76 65 20 74 6f 0a 77 |longer h|ave to.w|
|000004d0| 6f 72 72 79 20 61 62 6f | 75 74 20 73 70 65 63 69 |orry abo|ut speci|
|000004e0| 61 6c 20 73 79 73 74 65 | 6d 20 63 61 6c 6c 73 20 |al syste|m calls |
|000004f0| 74 6f 20 6d 61 6e 69 70 | 75 6c 61 74 65 20 74 68 |to manip|ulate th|
|00000500| 65 20 74 74 79 20 66 64 | 2c 20 6e 6f 6e 2d 6f 72 |e tty fd|, non-or|
|00000510| 70 68 61 6e 65 64 0a 70 | 72 6f 63 65 73 73 65 73 |phaned.p|rocesses|
|00000520| 20 69 6e 20 6f 72 70 68 | 61 6e 65 64 20 70 72 6f | in orph|aned pro|
|00000530| 63 65 73 73 20 67 72 6f | 75 70 73 20 61 72 65 20 |cess gro|ups are |
|00000540| 6e 6f 74 20 6b 69 6c 6c | 65 64 20 6f 66 66 20 75 |not kill|ed off u|
|00000550| 6e 6e 65 63 65 73 73 61 | 72 69 6c 79 2c 0a 65 74 |nnecessa|rily,.et|
|00000560| 63 2e 0a 0a 4e 65 69 74 | 68 65 72 20 53 75 6e 4f |c...Neit|her SunO|
|00000570| 53 20 34 2e 31 20 6e 6f | 72 20 55 6c 74 72 69 78 |S 4.1 no|r Ultrix|
|00000580| 20 34 2e 30 20 63 6f 72 | 72 65 63 74 6c 79 20 69 | 4.0 cor|rectly i|
|00000590| 6d 70 6c 65 6d 65 6e 74 | 73 20 50 4f 53 49 58 20 |mplement|s POSIX |
|000005a0| 73 65 73 73 69 6f 6e 73 | 2e 0a 49 6e 20 70 61 72 |sessions|..In par|
|000005b0| 74 69 63 75 6c 61 72 2c | 20 62 6f 74 68 20 73 79 |ticular,| both sy|
|000005c0| 73 74 65 6d 73 20 63 68 | 6f 70 20 6f 66 66 20 61 |stems ch|op off a|
|000005d0| 63 63 65 73 73 20 74 6f | 20 74 68 65 20 6f 72 69 |ccess to| the ori|
|000005e0| 67 69 6e 61 6c 20 2f 64 | 65 76 2f 74 74 79 0a 61 |ginal /d|ev/tty.a|
|000005f0| 66 74 65 72 20 61 20 70 | 72 6f 63 65 73 73 20 73 |fter a p|rocess s|
|00000600| 65 74 73 69 64 28 29 73 | 20 61 6e 64 20 6f 70 65 |etsid()s| and ope|
|00000610| 6e 73 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 63 |ns a dif|ferent c|
|00000620| 6f 6e 74 72 6f 6c 6c 69 | 6e 67 20 74 65 72 6d 69 |ontrolli|ng termi|
|00000630| 6e 61 6c 2e 0a 54 68 69 | 73 20 69 73 20 63 6c 65 |nal..Thi|s is cle|
|00000640| 61 72 6c 79 20 63 6f 6e | 74 72 61 72 79 20 74 6f |arly con|trary to|
|00000650| 20 74 68 65 20 69 6e 74 | 65 6e 74 20 6f 66 20 50 | the int|ent of P|
|00000660| 4f 53 49 58 2c 20 61 73 | 20 65 78 70 72 65 73 73 |OSIX, as| express|
|00000670| 65 64 20 69 6e 0a 42 2e | 37 2e 31 2e 31 2e 34 2e |ed in.B.|7.1.1.4.|
|00000680| 20 49 74 20 63 61 6e 20 | 62 65 20 70 72 6f 76 65 | It can |be prove|
|00000690| 6e 20 74 6f 20 62 65 20 | 61 20 76 69 6f 6c 61 74 |n to be |a violat|
|000006a0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 73 74 61 6e 64 |ion of t|he stand|
|000006b0| 61 72 64 2c 20 61 73 20 | 74 68 69 73 0a 72 65 6d |ard, as |this.rem|
|000006c0| 6f 76 61 6c 20 6f 66 20 | 61 63 63 65 73 73 20 69 |oval of |access i|
|000006d0| 73 20 6e 6f 74 20 64 65 | 66 69 6e 65 64 20 62 79 |s not de|fined by|
|000006e0| 20 65 69 74 68 65 72 20 | 69 6d 70 6c 65 6d 65 6e | either |implemen|
|000006f0| 74 61 74 69 6f 6e 2e 20 | 4e 6f 74 65 20 74 68 61 |tation. |Note tha|
|00000700| 74 20 69 74 0a 68 61 70 | 70 65 6e 73 20 6f 6e 6c |t it.hap|pens onl|
|00000710| 79 20 77 69 74 68 20 2f | 64 65 76 2f 74 74 79 2c |y with /|dev/tty,|
|00000720| 20 6e 6f 74 20 77 69 74 | 68 20 74 68 65 20 61 63 | not wit|h the ac|
|00000730| 74 75 61 6c 20 74 65 72 | 6d 69 6e 61 6c 20 66 69 |tual ter|minal fi|
|00000740| 6c 65 3b 20 73 6f 20 62 | 6f 74 68 0a 73 79 73 74 |le; so b|oth.syst|
|00000750| 65 6d 73 20 61 72 65 20 | 61 6c 73 6f 20 63 6c 65 |ems are |also cle|
|00000760| 61 72 6c 79 20 69 6e 20 | 76 69 6f 6c 61 74 69 6f |arly in |violatio|
|00000770| 6e 20 6f 66 20 74 68 65 | 20 63 74 65 72 6d 69 64 |n of the| ctermid|
|00000780| 28 29 20 64 65 66 69 6e | 69 74 69 6f 6e 2e 0a 0a |() defin|ition...|
|00000790| 54 68 65 20 62 75 67 73 | 20 49 20 6a 75 73 74 20 |The bugs| I just |
|000007a0| 64 65 73 63 72 69 62 65 | 64 20 61 72 65 20 73 6f |describe|d are so|
|000007b0| 6c 65 6c 79 20 72 65 73 | 70 6f 6e 73 69 62 6c 65 |lely res|ponsible|
|000007c0| 20 66 6f 72 20 74 68 65 | 20 66 61 69 6c 75 72 65 | for the| failure|
|000007d0| 20 6f 66 20 6d 79 0a 70 | 74 79 20 70 72 6f 67 72 | of my.p|ty progr|
|000007e0| 61 6d 20 75 6e 64 65 72 | 20 53 75 6e 4f 53 20 34 |am under| SunOS 4|
|000007f0| 2e 31 20 61 6e 64 20 55 | 6c 74 72 69 78 20 34 2e |.1 and U|ltrix 4.|
|00000800| 30 2e 20 28 49 20 77 69 | 6c 6c 20 70 6f 73 74 20 |0. (I wi|ll post |
|00000810| 61 20 73 74 6f 70 67 61 | 70 20 70 61 74 63 68 0a |a stopga|p patch.|
|00000820| 62 79 20 46 72 69 64 61 | 79 2e 29 20 49 66 20 63 |by Frida|y.) If c|
|00000830| 74 65 72 6d 69 64 28 29 | 2c 20 63 6f 6e 74 72 6f |termid()|, contro|
|00000840| 6c 6c 69 6e 67 20 74 65 | 72 6d 69 6e 61 6c 73 2c |lling te|rminals,|
|00000850| 20 61 6e 64 20 50 4f 53 | 49 58 20 73 65 73 73 69 | and POS|IX sessi|
|00000860| 6f 6e 73 20 77 65 72 65 | 0a 6e 6f 74 20 6d 61 6e |ons were|.not man|
|00000870| 64 61 74 65 64 20 62 79 | 20 50 31 30 30 33 2e 31 |dated by| P1003.1|
|00000880| 2c 20 74 68 65 20 53 75 | 6e 20 61 6e 64 20 44 45 |, the Su|n and DE|
|00000890| 43 20 70 72 6f 67 72 61 | 6d 6d 65 72 73 20 77 6f |C progra|mmers wo|
|000008a0| 75 6c 64 6e 27 74 20 68 | 61 76 65 0a 69 6e 74 72 |uldn't h|ave.intr|
|000008b0| 6f 64 75 63 65 64 20 74 | 68 65 73 65 20 62 75 67 |oduced t|hese bug|
|000008c0| 73 20 69 6e 74 6f 20 74 | 68 65 69 72 20 6c 61 74 |s into t|heir lat|
|000008d0| 65 73 74 20 6f 70 65 72 | 61 74 69 6e 67 20 73 79 |est oper|ating sy|
|000008e0| 73 74 65 6d 73 2e 20 49 | 73 6e 27 74 20 69 74 0a |stems. I|sn't it.|
|000008f0| 6f 62 76 69 6f 75 73 20 | 74 68 61 74 20 74 68 65 |obvious |that the|
|00000900| 20 74 74 79 20 73 79 73 | 74 65 6d 20 69 73 20 61 | tty sys|tem is a|
|00000910| 20 66 72 75 69 74 66 75 | 6c 20 73 6f 75 72 63 65 | fruitfu|l source|
|00000920| 20 6f 66 20 62 75 67 73 | 3f 20 53 68 6f 75 6c 64 | of bugs|? Should|
|00000930| 6e 27 74 20 77 65 0a 6d | 61 6b 65 20 65 76 65 72 |n't we.m|ake ever|
|00000940| 79 20 65 66 66 6f 72 74 | 20 74 6f 20 73 69 6d 70 |y effort| to simp|
|00000950| 6c 69 66 79 20 74 68 69 | 73 20 61 72 65 61 20 6f |lify thi|s area o|
|00000960| 66 20 55 4e 49 58 3f 0a | 0a 76 39 20 63 6f 75 6c |f UNIX?.|.v9 coul|
|00000970| 64 20 65 61 73 69 6c 79 | 20 61 64 6f 70 74 20 66 |d easily| adopt f|
|00000980| 64 20 33 20 62 65 63 61 | 75 73 65 20 69 74 20 69 |d 3 beca|use it i|
|00000990| 73 20 6e 6f 74 20 61 20 | 63 6f 6d 6d 65 72 63 69 |s not a |commerci|
|000009a0| 61 6c 20 6f 70 65 72 61 | 74 69 6e 67 0a 73 79 73 |al opera|ting.sys|
|000009b0| 74 65 6d 2e 20 49 74 20 | 77 69 6c 6c 20 74 61 6b |tem. It |will tak|
|000009c0| 65 20 61 20 6c 6f 74 20 | 6d 6f 72 65 20 63 61 72 |e a lot |more car|
|000009d0| 65 20 74 6f 20 69 6e 74 | 72 6f 64 75 63 65 20 73 |e to int|roduce s|
|000009e0| 69 6d 69 6c 61 72 20 63 | 68 61 6e 67 65 73 20 69 |imilar c|hanges i|
|000009f0| 6e 74 6f 2c 0a 65 2e 67 | 2e 2c 20 42 53 44 2e 20 |nto,.e.g|., BSD. |
|00000a00| 49 20 70 72 6f 70 6f 73 | 65 20 74 68 65 20 66 6f |I propos|e the fo|
|00000a10| 6c 6c 6f 77 69 6e 67 20 | 70 6c 61 6e 20 6f 66 20 |llowing |plan of |
|00000a20| 61 63 74 69 6f 6e 3a 0a | 0a 20 20 31 2e 20 49 6e |action:.|. 1. In|
|00000a30| 20 74 68 65 20 6e 65 78 | 74 20 50 31 30 30 33 2e | the nex|t P1003.|
|00000a40| 31 20 72 65 76 69 73 69 | 6f 6e 2c 20 61 64 64 20 |1 revisi|on, add |
|00000a50| 61 20 66 65 61 74 75 72 | 65 20 74 65 73 74 20 6d |a featur|e test m|
|00000a60| 61 63 72 6f 20 66 6f 72 | 20 63 74 74 79 73 2e 0a |acro for| cttys..|
|00000a70| 20 20 20 20 20 54 61 6b | 65 20 2a 65 76 65 72 79 | Tak|e *every|
|00000a80| 20 73 69 6e 67 6c 65 20 | 73 65 6e 74 65 6e 63 65 | single |sentence|
|00000a90| 20 69 6e 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | in the |standard|
|00000aa0| 2a 20 74 61 6c 6b 69 6e | 67 20 61 62 6f 75 74 20 |* talkin|g about |
|00000ab0| 50 4f 53 49 58 0a 20 20 | 20 20 20 73 65 73 73 69 |POSIX. | sessi|
|00000ac0| 6f 6e 73 2c 20 63 74 74 | 79 73 2c 20 6f 72 20 63 |ons, ctt|ys, or c|
|00000ad0| 74 65 72 6d 69 64 28 29 | 2c 20 61 6e 64 20 6d 61 |termid()|, and ma|
|00000ae0| 6b 65 20 69 74 20 63 6f | 6e 64 69 74 69 6f 6e 61 |ke it co|nditiona|
|00000af0| 6c 20 75 70 6f 6e 20 74 | 68 65 0a 20 20 20 20 20 |l upon t|he. |
|00000b00| 73 79 73 74 65 6d 27 73 | 20 6f 70 74 69 6f 6e 61 |system's| optiona|
|00000b10| 6c 20 73 75 70 70 6f 72 | 74 20 66 6f 72 20 63 74 |l suppor|t for ct|
|00000b20| 74 79 73 2e 0a 0a 20 20 | 32 2e 20 41 6c 73 6f 20 |tys... |2. Also |
|00000b30| 63 68 61 6e 67 65 20 74 | 68 65 20 64 65 66 69 6e |change t|he defin|
|00000b40| 69 74 69 6f 6e 73 20 6f | 66 20 60 60 66 6f 72 65 |itions o|f ``fore|
|00000b50| 67 72 6f 75 6e 64 20 70 | 72 6f 63 65 73 73 20 67 |ground p|rocess g|
|00000b60| 72 6f 75 70 27 27 20 61 | 6e 64 0a 20 20 20 20 20 |roup'' a|nd. |
|00000b70| 60 60 62 61 63 6b 67 72 | 6f 75 6e 64 20 70 72 6f |``backgr|ound pro|
|00000b80| 63 65 73 73 20 67 72 6f | 75 70 27 27 20 69 6e 20 |cess gro|up'' in |
|00000b90| 63 61 73 65 20 63 74 74 | 79 73 20 61 72 65 20 6e |case ctt|ys are n|
|00000ba0| 6f 74 20 73 75 70 70 6f | 72 74 65 64 2e 20 49 6e |ot suppo|rted. In|
|00000bb0| 0a 20 20 20 20 20 42 53 | 44 2c 20 74 68 6f 73 65 |. BS|D, those|
|00000bc0| 20 74 65 72 6d 73 20 61 | 72 65 20 72 65 6c 61 74 | terms a|re relat|
|00000bd0| 69 76 65 20 74 6f 20 74 | 68 65 20 74 74 79 20 79 |ive to t|he tty y|
|00000be0| 6f 75 27 72 65 20 74 72 | 79 69 6e 67 20 74 6f 20 |ou're tr|ying to |
|00000bf0| 61 63 63 65 73 73 2e 0a | 20 20 20 20 20 49 6e 20 |access..| In |
|00000c00| 50 4f 53 49 58 2c 20 74 | 68 65 79 20 61 72 65 20 |POSIX, t|hey are |
|00000c10| 63 6f 6e 73 74 61 6e 74 | 3b 20 61 20 70 72 6f 63 |constant|; a proc|
|00000c20| 65 73 73 20 69 73 20 65 | 69 74 68 65 72 20 69 6e |ess is e|ither in|
|00000c30| 20 74 68 65 20 66 6f 72 | 65 67 72 6f 75 6e 64 0a | the for|eground.|
|00000c40| 20 20 20 20 20 6f 72 20 | 69 6e 20 74 68 65 20 62 | or |in the b|
|00000c50| 61 63 6b 67 72 6f 75 6e | 64 2c 20 64 65 70 65 6e |ackgroun|d, depen|
|00000c60| 64 69 6e 67 20 6f 6e 6c | 79 20 6f 6e 20 69 74 73 |ding onl|y on its|
|00000c70| 20 63 6f 6e 74 72 6f 6c | 6c 69 6e 67 20 74 65 72 | control|ling ter|
|00000c80| 6d 69 6e 61 6c 2e 0a 20 | 20 20 20 20 54 68 65 20 |minal.. | The |
|00000c90| 6e 65 77 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 77 |new defi|nition w|
|00000ca0| 6f 75 6c 64 20 62 65 20 | 74 68 65 20 73 61 6d 65 |ould be |the same|
|00000cb0| 20 61 73 20 74 68 65 20 | 6f 6c 64 20 42 53 44 20 | as the |old BSD |
|00000cc0| 64 65 66 69 6e 69 74 69 | 6f 6e 2e 0a 0a 20 20 33 |definiti|on... 3|
|00000cd0| 2e 20 41 64 64 20 61 20 | 6e 65 77 20 64 65 76 69 |. Add a |new devi|
|00000ce0| 63 65 2c 20 2f 64 65 76 | 2f 73 74 64 74 74 79 2e |ce, /dev|/stdtty.|
|00000cf0| 20 4f 70 65 6e 69 6e 67 | 20 74 68 69 73 20 64 65 | Opening| this de|
|00000d00| 76 69 63 65 20 69 73 20 | 65 71 75 69 76 61 6c 65 |vice is |equivale|
|00000d10| 6e 74 20 74 6f 0a 20 20 | 20 20 20 64 75 70 28 29 |nt to. | dup()|
|00000d20| 69 6e 67 20 66 64 20 33 | 2e 20 4e 6f 74 69 63 65 |ing fd 3|. Notice|
|00000d30| 20 74 68 65 20 6e 61 6d | 65 20 60 60 73 74 61 6e | the nam|e ``stan|
|00000d40| 64 61 72 64 20 74 74 79 | 27 27 3b 20 74 68 69 73 |dard tty|''; this|
|00000d50| 20 69 73 20 74 6f 20 61 | 76 6f 69 64 0a 20 20 20 | is to a|void. |
|00000d60| 20 20 63 6f 6e 66 75 73 | 69 6f 6e 20 77 69 74 68 | confus|ion with|
|00000d70| 20 60 60 63 6f 6e 74 72 | 6f 6c 6c 69 6e 67 20 74 | ``contr|olling t|
|00000d80| 74 79 2e 27 27 20 73 74 | 64 69 6f 20 73 68 6f 75 |ty.'' st|dio shou|
|00000d90| 6c 64 20 73 75 70 70 6f | 72 74 20 73 74 64 74 74 |ld suppo|rt stdtt|
|00000da0| 79 20 61 73 0a 20 20 20 | 20 20 77 65 6c 6c 2c 20 |y as. | well, |
|00000db0| 74 68 6f 75 67 68 20 28 | 75 6e 6c 69 6b 65 20 73 |though (|unlike s|
|00000dc0| 74 64 69 6e 2f 6f 75 74 | 2f 65 72 72 29 20 73 74 |tdin/out|/err) st|
|00000dd0| 64 74 74 79 20 6d 61 79 | 20 62 79 20 63 6f 6e 76 |dtty may| by conv|
|00000de0| 65 6e 74 69 6f 6e 20 62 | 65 0a 20 20 20 20 20 63 |ention b|e. c|
|00000df0| 6c 6f 73 65 64 2e 0a 0a | 20 20 34 2e 20 43 68 61 |losed...| 4. Cha|
|00000e00| 6e 67 65 20 74 68 65 20 | 66 65 77 20 6e 65 63 65 |nge the |few nece|
|00000e10| 73 73 61 72 79 20 70 72 | 6f 67 72 61 6d 73 20 28 |ssary pr|ograms (|
|00000e20| 65 2e 67 2e 2c 20 67 65 | 74 74 79 29 20 74 6f 20 |e.g., ge|tty) to |
|00000e30| 73 75 70 70 6f 72 74 20 | 74 68 65 20 66 64 20 33 |support |the fd 3|
|00000e40| 0a 20 20 20 20 20 73 74 | 64 74 74 79 20 63 6f 6e |. st|dtty con|
|00000e50| 76 65 6e 74 69 6f 6e 2e | 20 49 6e 20 66 61 63 74 |vention.| In fact|
|00000e60| 2c 20 6d 79 20 70 74 79 | 20 70 72 6f 67 72 61 6d |, my pty| program|
|00000e70| 20 61 6c 72 65 61 64 79 | 20 73 75 70 70 6f 72 74 | already| support|
|00000e80| 73 20 74 68 69 73 0a 20 | 20 20 20 20 63 6f 6e 76 |s this. | conv|
|00000e90| 65 6e 74 69 6f 6e 2c 20 | 61 6e 64 20 74 68 65 20 |ention, |and the |
|00000ea0| 70 74 79 20 70 61 63 6b | 61 67 65 20 69 6e 63 6c |pty pack|age incl|
|00000eb0| 75 64 65 73 20 70 61 74 | 63 68 65 73 20 66 6f 72 |udes pat|ches for|
|00000ec0| 20 74 65 6c 6e 65 74 64 | 20 74 6f 0a 20 20 20 20 | telnetd| to. |
|00000ed0| 20 73 75 70 70 6f 72 74 | 20 70 74 79 2e 20 41 64 | support| pty. Ad|
|00000ee0| 64 69 6e 67 20 73 69 6d | 69 6c 61 72 20 73 75 70 |ding sim|ilar sup|
|00000ef0| 70 6f 72 74 20 74 6f 20 | 67 65 74 74 79 2c 20 72 |port to |getty, r|
|00000f00| 6c 6f 67 69 6e 64 2c 20 | 65 74 63 2e 20 77 69 6c |logind, |etc. wil|
|00000f10| 6c 20 62 65 0a 20 20 20 | 20 20 6a 75 73 74 20 61 |l be. | just a|
|00000f20| 73 20 65 61 73 79 2e 20 | 0a 0a 20 20 35 2e 20 41 |s easy. |.. 5. A|
|00000f30| 64 64 20 61 20 6e 65 77 | 20 64 65 76 69 63 65 2c |dd a new| device,|
|00000f40| 20 2f 64 65 76 2f 63 74 | 74 79 2c 20 65 71 75 69 | /dev/ct|ty, equi|
|00000f50| 76 61 6c 65 6e 74 20 74 | 6f 20 74 68 65 20 63 75 |valent t|o the cu|
|00000f60| 72 72 65 6e 74 20 2f 64 | 65 76 2f 74 74 79 2e 0a |rrent /d|ev/tty..|
|00000f70| 0a 20 20 36 2e 20 53 77 | 69 74 63 68 20 2f 64 65 |. 6. Sw|itch /de|
|00000f80| 76 2f 74 74 79 20 74 6f | 20 62 65 20 2f 64 65 76 |v/tty to| be /dev|
|00000f90| 2f 73 74 64 74 74 79 20 | 72 61 74 68 65 72 20 74 |/stdtty |rather t|
|00000fa0| 68 61 6e 20 2f 64 65 76 | 2f 63 74 74 79 2e 20 53 |han /dev|/ctty. S|
|00000fb0| 65 65 20 69 66 0a 20 20 | 20 20 20 61 6e 79 6f 6e |ee if. | anyon|
|00000fc0| 65 20 6e 6f 74 69 63 65 | 73 2e 0a 0a 20 20 37 2e |e notice|s... 7.|
|00000fd0| 20 54 75 72 6e 20 6f 66 | 66 20 74 68 65 20 63 74 | Turn of|f the ct|
|00000fe0| 74 79 20 66 65 61 74 75 | 72 65 2c 20 74 6f 20 72 |ty featu|re, to r|
|00000ff0| 65 6d 61 69 6e 20 63 6f | 6d 70 6c 69 61 6e 74 20 |emain co|mpliant |
|00001000| 77 69 74 68 20 50 4f 53 | 49 58 2e 0a 20 20 20 20 |with POS|IX.. |
|00001010| 20 45 6c 69 6d 69 6e 61 | 74 65 20 63 6f 6e 74 72 | Elimina|te contr|
|00001020| 6f 6c 6c 69 6e 67 20 74 | 74 79 73 2c 20 50 4f 53 |olling t|tys, POS|
|00001030| 49 58 20 73 65 73 73 69 | 6f 6e 73 2c 20 61 6e 64 |IX sessi|ons, and|
|00001040| 20 73 6f 20 6f 6e 20 66 | 72 6f 6d 20 74 68 65 0a | so on f|rom the.|
|00001050| 20 20 20 20 20 6b 65 72 | 6e 65 6c 2e 20 50 72 65 | ker|nel. Pre|
|00001060| 73 65 72 76 65 20 74 68 | 65 20 6f 6c 64 20 62 65 |serve th|e old be|
|00001070| 68 61 76 69 6f 72 20 6f | 66 20 70 73 20 62 79 20 |havior o|f ps by |
|00001080| 68 61 76 69 6e 67 20 69 | 74 20 67 6c 61 6e 63 65 |having i|t glance|
|00001090| 20 61 74 20 66 64 20 33 | 0a 20 20 20 20 20 69 6e | at fd 3|. in|
|000010a0| 73 69 64 65 20 74 68 65 | 20 70 72 6f 63 65 73 73 |side the| process|
|000010b0| 20 75 20 61 72 65 61 2d | 2d 2d 69 74 20 61 6c 72 | u area-|--it alr|
|000010c0| 65 61 64 79 20 6c 6f 6f | 6b 73 20 61 72 6f 75 6e |eady loo|ks aroun|
|000010d0| 64 20 65 6e 6f 75 67 68 | 20 69 6e 0a 20 20 20 20 |d enough| in. |
|000010e0| 20 6b 65 72 6e 65 6c 20 | 6d 65 6d 6f 72 79 2e 0a | kernel |memory..|
|000010f0| 0a 3e 20 49 6e 20 61 72 | 74 69 63 6c 65 20 3c 31 |.> In ar|ticle <1|
|00001100| 34 31 30 33 40 63 73 2e | 75 74 65 78 61 73 2e 65 |4103@cs.|utexas.e|
|00001110| 64 75 3e 20 61 72 6e 6f | 6c 64 40 61 75 64 69 6f |du> arno|ld@audio|
|00001120| 66 61 78 2e 63 6f 6d 20 | 77 72 69 74 65 73 3a 0a |fax.com |writes:.|
|00001130| 3e 20 3e 49 6e 20 67 65 | 6e 65 72 61 6c 2c 20 75 |> >In ge|neral, u|
|00001140| 6e 6c 65 73 73 20 73 6f | 6d 65 6f 6e 65 20 77 65 |nless so|meone we|
|00001150| 6e 74 20 74 6f 20 74 68 | 65 20 74 72 6f 75 62 6c |nt to th|e troubl|
|00001160| 65 2c 20 66 64 20 33 20 | 77 69 6c 6c 20 62 65 20 |e, fd 3 |will be |
|00001170| 61 74 74 61 63 68 65 64 | 20 74 6f 20 74 68 65 0a |attached| to the.|
|00001180| 3e 20 3e 74 65 72 6d 69 | 6e 61 6c 2c 20 73 6f 20 |> >termi|nal, so |
|00001190| 6f 70 65 6e 69 6e 67 20 | 2f 64 65 76 2f 74 74 79 |opening |/dev/tty|
|000011a0| 20 69 73 20 70 72 65 74 | 74 79 20 73 61 66 65 2e | is pret|ty safe.|
|000011b0| 20 20 4e 6f 74 68 69 6e | 67 27 73 20 66 6f 6f 6c | Nothin|g's fool|
|000011c0| 70 72 6f 6f 66 3b 20 5b | 2e 2e 2e 5d 0a 3e 20 3e |proof; [|...].> >|
|000011d0| 59 6f 75 27 72 65 20 6e | 6f 20 77 6f 72 73 65 20 |You're n|o worse |
|000011e0| 6f 66 66 20 74 68 61 6e | 20 62 65 66 6f 72 65 20 |off than| before |
|000011f0| 77 68 65 6e 20 2f 64 65 | 76 2f 74 74 79 20 77 61 |when /de|v/tty wa|
|00001200| 73 20 62 75 69 6c 74 20 | 69 6e 74 6f 20 74 68 65 |s built |into the|
|00001210| 20 6b 65 72 6e 65 6c 2e | 0a 3e 20 49 66 20 79 6f | kernel.|.> If yo|
|00001220| 75 20 68 61 76 65 20 61 | 20 70 72 6f 67 72 61 6d |u have a| program|
|00001230| 20 74 68 61 74 20 63 6c | 6f 73 65 73 20 6f 6e 6c | that cl|oses onl|
|00001240| 79 20 66 64 20 33 2c 20 | 74 68 69 73 20 69 6d 70 |y fd 3, |this imp|
|00001250| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 20 77 69 6c 6c |lementat|ion will|
|00001260| 20 62 65 68 61 76 65 0a | 3e 20 64 69 66 66 65 72 | behave.|> differ|
|00001270| 65 6e 74 6c 79 20 66 72 | 6f 6d 20 74 68 65 20 6f |ently fr|om the o|
|00001280| 6c 64 20 2f 64 65 76 2f | 74 74 79 20 64 65 76 69 |ld /dev/|tty devi|
|00001290| 63 65 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |ce imple|mentatio|
|000012a0| 6e 2c 20 77 6f 6e 27 74 | 20 69 74 3f 0a 0a 59 65 |n, won't| it?..Ye|
|000012b0| 73 2c 20 69 74 20 77 69 | 6c 6c 2e 20 53 6f 20 77 |s, it wi|ll. So w|
|000012c0| 68 61 74 3f 0a 0a 3e 20 | 59 6f 75 20 77 69 6c 6c |hat?..> |You will|
|000012d0| 0a 3e 20 6e 6f 74 20 62 | 65 20 61 62 6c 65 20 74 |.> not b|e able t|
|000012e0| 6f 20 72 65 61 63 68 20 | 74 68 65 20 63 6f 6e 74 |o reach |the cont|
|000012f0| 72 6f 6c 6c 69 6e 67 20 | 74 65 72 6d 69 6e 61 6c |rolling |terminal|
|00001300| 20 62 79 20 61 20 67 75 | 61 72 61 6e 74 65 65 64 | by a gu|aranteed|
|00001310| 20 72 6f 75 74 65 2c 20 | 69 6e 20 73 70 69 74 65 | route, |in spite|
|00001320| 0a 3e 20 6f 66 20 74 68 | 65 20 66 61 63 74 20 74 |.> of th|e fact t|
|00001330| 68 61 74 20 69 74 20 69 | 73 20 73 74 69 6c 6c 20 |hat it i|s still |
|00001340| 61 76 61 69 6c 61 62 6c | 65 20 6f 6e 20 6f 74 68 |availabl|e on oth|
|00001350| 65 72 20 66 64 2d 73 2e | 0a 0a 57 68 6f 20 63 61 |er fd-s.|..Who ca|
|00001360| 72 65 73 3f 0a 0a 54 68 | 65 72 65 20 68 61 73 20 |res?..Th|ere has |
|00001370| 6e 6f 74 20 62 65 65 6e | 20 61 20 60 60 67 75 61 |not been| a ``gua|
|00001380| 72 61 6e 74 65 65 64 20 | 72 6f 75 74 65 27 27 20 |ranteed |route'' |
|00001390| 74 6f 20 72 65 61 63 68 | 20 74 68 65 20 63 6f 6e |to reach| the con|
|000013a0| 74 72 6f 6c 6c 69 6e 67 | 0a 74 65 72 6d 69 6e 61 |trolling|.termina|
|000013b0| 6c 2c 20 65 76 65 72 20 | 73 69 6e 63 65 20 42 53 |l, ever |since BS|
|000013c0| 44 20 69 6e 74 72 6f 64 | 75 63 65 64 20 54 49 4f |D introd|uced TIO|
|000013d0| 43 45 58 43 4c 2e 20 4f | 70 65 6e 69 6e 67 20 2f |CEXCL. O|pening /|
|000013e0| 64 65 76 2f 74 74 79 20 | 61 6e 64 0a 73 65 6e 64 |dev/tty |and.send|
|000013f0| 69 6e 67 20 61 20 54 49 | 4f 43 4e 4f 54 54 59 20 |ing a TI|OCNOTTY |
|00001400| 64 6f 77 6e 20 69 74 20 | 69 73 20 6e 6f 74 20 72 |down it |is not r|
|00001410| 65 6c 69 61 62 6c 65 2c | 20 62 65 63 61 75 73 65 |eliable,| because|
|00001420| 20 2f 64 65 76 2f 74 74 | 79 20 6d 61 79 20 6e 6f | /dev/tt|y may no|
|00001430| 74 20 62 65 0a 6f 70 65 | 6e 61 62 6c 65 2e 20 54 |t be.ope|nable. T|
|00001440| 68 61 74 27 73 20 72 69 | 67 68 74 3a 20 74 68 65 |hat's ri|ght: the|
|00001450| 72 65 20 69 73 20 2a 6e | 6f 2a 20 67 75 61 72 61 |re is *n|o* guara|
|00001460| 6e 74 65 65 64 20 77 61 | 79 20 74 6f 20 64 69 73 |nteed wa|y to dis|
|00001470| 73 6f 63 69 61 74 65 20 | 66 72 6f 6d 0a 79 6f 75 |sociate |from.you|
|00001480| 72 20 63 6f 6e 74 72 6f | 6c 6c 69 6e 67 20 74 65 |r contro|lling te|
|00001490| 72 6d 69 6e 61 6c 2e 20 | 63 6c 6f 73 65 28 33 29 |rminal. |close(3)|
|000014a0| 20 69 73 20 61 20 62 65 | 74 74 65 72 20 73 6f 6c | is a be|tter sol|
|000014b0| 75 74 69 6f 6e 2e 0a 0a | 57 68 65 72 65 20 69 73 |ution...|Where is|
|000014c0| 20 74 68 69 73 20 67 6c | 61 72 69 6e 67 20 6e 65 | this gl|aring ne|
|000014d0| 65 64 20 66 6f 72 20 61 | 20 70 72 6f 63 65 73 73 |ed for a| process|
|000014e0| 20 74 6f 20 66 69 6e 64 | 20 69 74 73 20 63 6f 6e | to find| its con|
|000014f0| 74 72 6f 6c 6c 69 6e 67 | 20 74 74 79 3f 0a 57 68 |trolling| tty?.Wh|
|00001500| 79 20 73 68 6f 75 6c 64 | 6e 27 74 20 69 74 20 62 |y should|n't it b|
|00001510| 65 20 65 61 73 79 20 66 | 6f 72 20 74 68 65 20 75 |e easy f|or the u|
|00001520| 73 65 72 20 74 6f 20 63 | 6f 6e 74 72 6f 6c 2c 20 |ser to c|ontrol, |
|00001530| 75 73 69 6e 67 20 74 68 | 65 20 73 61 6d 65 20 66 |using th|e same f|
|00001540| 64 0a 6d 65 63 68 61 6e | 69 73 6d 73 20 61 73 20 |d.mechan|isms as |
|00001550| 61 6e 79 20 6f 74 68 65 | 72 20 72 65 64 69 72 65 |any othe|r redire|
|00001560| 63 74 69 6f 6e 3f 20 54 | 68 65 20 61 72 67 75 6d |ction? T|he argum|
|00001570| 65 6e 74 20 74 68 61 74 | 20 60 60 70 61 73 73 77 |ent that| ``passw|
|00001580| 64 20 6e 65 65 64 73 20 | 74 6f 0a 74 61 6c 6b 20 |d needs |to.talk |
|00001590| 74 6f 20 74 68 65 20 75 | 73 65 72 27 73 20 74 74 |to the u|ser's tt|
|000015a0| 79 2c 20 72 65 6c 69 61 | 62 6c 79 27 27 20 68 61 |y, relia|bly'' ha|
|000015b0| 73 20 62 65 65 6e 20 6d | 6f 6f 74 20 65 76 65 72 |s been m|oot ever|
|000015c0| 20 73 69 6e 63 65 20 70 | 73 65 75 64 6f 2d 74 74 | since p|seudo-tt|
|000015d0| 79 73 0a 61 70 70 65 61 | 72 65 64 2e 0a 0a 57 68 |ys.appea|red...Wh|
|000015e0| 61 74 20 69 73 20 77 72 | 6f 6e 67 20 77 69 74 68 |at is wr|ong with|
|000015f0| 20 74 68 65 20 63 6f 6e | 63 65 70 74 20 6f 66 20 | the con|cept of |
|00001600| 61 20 73 74 61 6e 64 61 | 72 64 20 74 74 79 3f 0a |a standa|rd tty?.|
|00001610| 0a 3e 20 4f 72 20 69 73 | 20 74 68 65 20 63 6f 6e |.> Or is| the con|
|00001620| 74 72 6f 6c 6c 69 6e 67 | 0a 3e 20 74 65 72 6d 69 |trolling|.> termi|
|00001630| 6e 61 6c 20 63 6f 6e 63 | 65 70 74 20 69 6d 70 6c |nal conc|ept impl|
|00001640| 65 6d 65 6e 74 65 64 20 | 69 6e 20 73 75 63 68 20 |emented |in such |
|00001650| 61 20 77 61 79 20 74 68 | 61 74 20 63 6c 6f 73 69 |a way th|at closi|
|00001660| 6e 67 20 66 64 20 33 20 | 69 73 20 74 68 65 20 73 |ng fd 3 |is the s|
|00001670| 61 6d 65 20 61 73 0a 3e | 20 64 69 73 61 73 73 6f |ame as.>| disasso|
|00001680| 63 69 61 74 69 6e 67 20 | 66 72 6f 6d 20 74 68 65 |ciating |from the|
|00001690| 20 63 6f 6e 74 72 6f 6c | 6c 69 6e 67 20 74 65 72 | control|ling ter|
|000016a0| 6d 69 6e 61 6c 20 28 73 | 6f 20 79 6f 75 20 77 6f |minal (s|o you wo|
|000016b0| 6e 27 74 20 62 65 20 62 | 6f 74 68 65 72 20 77 69 |n't be b|other wi|
|000016c0| 74 68 0a 3e 20 74 65 72 | 6d 69 6e 61 6c 20 69 6e |th.> ter|minal in|
|000016d0| 74 65 72 72 75 70 74 73 | 20 61 6e 64 20 73 75 63 |terrupts| and suc|
|000016e0| 68 29 20 3f 0a 0a 57 65 | 6c 6c 2c 20 74 68 65 72 |h) ?..We|ll, ther|
|000016f0| 65 27 73 20 6e 6f 20 6c | 6f 67 69 63 61 6c 20 61 |e's no l|ogical a|
|00001700| 73 73 6f 63 69 61 74 69 | 6f 6e 20 62 65 74 77 65 |ssociati|on betwe|
|00001710| 65 6e 20 63 6c 6f 73 69 | 6e 67 20 66 64 20 33 20 |en closi|ng fd 3 |
|00001720| 61 6e 64 20 63 68 61 6e | 67 69 6e 67 0a 79 6f 75 |and chan|ging.you|
|00001730| 72 20 70 72 6f 63 65 73 | 73 20 67 72 6f 75 70 2e |r proces|s group.|
|00001740| 20 44 69 73 73 6f 63 69 | 61 74 69 6e 67 20 66 72 | Dissoci|ating fr|
|00001750| 6f 6d 20 74 68 65 20 63 | 6f 6e 74 72 6f 6c 6c 69 |om the c|ontrolli|
|00001760| 6e 67 20 74 65 72 6d 69 | 6e 61 6c 20 74 61 6b 65 |ng termi|nal take|
|00001770| 73 20 74 77 6f 0a 73 79 | 73 74 65 6d 20 63 61 6c |s two.sy|stem cal|
|00001780| 6c 73 3a 20 63 6c 6f 73 | 65 28 33 29 20 61 6e 64 |ls: clos|e(3) and|
|00001790| 20 73 65 74 70 67 72 70 | 28 30 2c 30 29 2e 20 41 | setpgrp|(0,0). A|
|000017a0| 74 74 61 63 68 69 6e 67 | 20 74 6f 20 61 20 6e 65 |ttaching| to a ne|
|000017b0| 77 20 6f 6e 65 20 6d 65 | 61 6e 73 0a 6f 70 65 6e |w one me|ans.open|
|000017c0| 28 29 69 6e 67 20 69 74 | 20 69 6e 74 6f 20 66 64 |()ing it| into fd|
|000017d0| 20 33 2c 20 61 6e 64 20 | 74 68 65 6e 20 73 65 74 | 3, and |then set|
|000017e0| 74 69 6e 67 20 70 72 6f | 63 65 73 73 20 67 72 6f |ting pro|cess gro|
|000017f0| 75 70 73 20 61 70 70 72 | 6f 70 72 69 61 74 65 6c |ups appr|opriatel|
|00001800| 79 2e 0a 54 68 65 72 65 | 27 73 20 73 69 6d 70 6c |y..There|'s simpl|
|00001810| 79 20 6e 6f 20 72 65 61 | 73 6f 6e 20 74 68 61 74 |y no rea|son that|
|00001820| 20 74 68 65 20 60 60 63 | 6f 6e 74 72 6f 6c 6c 69 | the ``c|ontrolli|
|00001830| 6e 67 20 74 65 72 6d 69 | 6e 61 6c 27 27 20 6f 66 |ng termi|nal'' of|
|00001840| 20 61 20 70 72 6f 63 65 | 73 73 0a 28 77 68 61 74 | a proce|ss.(what|
|00001850| 65 76 65 72 20 74 68 61 | 74 20 69 73 29 20 73 68 |ever tha|t is) sh|
|00001860| 6f 75 6c 64 20 61 66 66 | 65 63 74 20 74 68 65 20 |ould aff|ect the |
|00001870| 6b 65 72 6e 65 6c 27 73 | 20 6e 6f 72 6d 61 6c 20 |kernel's| normal |
|00001880| 70 72 6f 63 65 73 73 20 | 67 72 6f 75 70 0a 68 61 |process |group.ha|
|00001890| 6e 64 6c 69 6e 67 2e 0a | 0a 2d 2d 2d 44 61 6e 0a |ndling..|.---Dan.|
|000018a0| 0a 56 6f 6c 75 6d 65 2d | 4e 75 6d 62 65 72 3a 20 |.Volume-|Number: |
|000018b0| 56 6f 6c 75 6d 65 20 32 | 32 2c 20 4e 75 6d 62 65 |Volume 2|2, Numbe|
|000018c0| 72 20 31 35 0a 0a | |r 15.. | |
+--------+-------------------------+-------------------------+--------+--------+