home *** CD-ROM | disk | FTP | other *** search
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).
Confidence | Program | Detection | Match Type | Support
|
---|
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 Mon Dec 31 16:09:13 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 | 4d 6f 6e 20 44 65 63 20 |as.edu |Mon Dec |
|00000020| 33 31 20 31 36 3a 30 39 | 3a 31 33 20 31 39 39 30 |31 16:09|:13 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 55 | 55 2e 4e 45 54 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 39 36 31 35 |MTP ..id| AA29615|
|00000080| 3b 20 4d 6f 6e 2c 20 33 | 31 20 44 65 63 20 39 30 |; Mon, 3|1 Dec 90|
|00000090| 20 31 36 3a 30 39 3a 31 | 33 20 2d 30 35 30 30 0a | 16:09:1|3 -0500.|
|000000a0| 50 6f 73 74 65 64 2d 44 | 61 74 65 3a 20 33 30 20 |Posted-D|ate: 30 |
|000000b0| 44 65 63 20 39 30 20 31 | 36 3a 31 37 3a 34 30 20 |Dec 90 1|6:17:40 |
|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 39 | 32 29 20 0a 46 72 6f 6d |5.64/1.9|2) .From|
|000000f0| 3a 20 74 6d 73 6f 66 74 | 21 6d 61 73 6f 6e 40 63 |: tmsoft|!mason@c|
|00000100| 73 2e 75 74 65 78 61 73 | 2e 65 64 75 20 28 44 61 |s.utexas|.edu (Da|
|00000110| 76 65 20 4d 61 73 6f 6e | 29 0a 4e 65 77 73 67 72 |ve Mason|).Newsgr|
|00000120| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 73 74 64 2e 75 |oups: co|mp.std.u|
|00000130| 6e 69 78 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |nix.Subj|ect: Re:|
|00000140| 20 71 66 6f 72 6b 28 29 | 0a 4d 65 73 73 61 67 65 | qfork()|.Message|
|00000150| 2d 49 64 3a 20 3c 31 36 | 33 37 30 40 63 73 2e 75 |-Id: <16|370@cs.u|
|00000160| 74 65 78 61 73 2e 65 64 | 75 3e 0a 52 65 66 65 72 |texas.ed|u>.Refer|
|00000170| 65 6e 63 65 73 3a 20 3c | 31 36 30 36 36 40 63 73 |ences: <|16066@cs|
|00000180| 2e 75 74 65 78 61 73 2e | 65 64 75 3e 20 3c 31 36 |.utexas.|edu> <16|
|00000190| 32 37 31 40 63 73 2e 75 | 74 65 78 61 73 2e 65 64 |271@cs.u|texas.ed|
|000001a0| 75 3e 20 3c 31 36 33 30 | 37 40 63 73 2e 75 74 65 |u> <1630|7@cs.ute|
|000001b0| 78 61 73 2e 65 64 75 3e | 0a 53 65 6e 64 65 72 3a |xas.edu>|.Sender:|
|000001c0| 20 6a 73 71 40 63 73 2e | 75 74 65 78 61 73 2e 65 | jsq@cs.|utexas.e|
|000001d0| 64 75 0a 52 65 70 6c 79 | 2d 54 6f 3a 20 74 6d 73 |du.Reply|-To: tms|
|000001e0| 6f 66 74 21 6d 61 73 6f | 6e 40 63 73 2e 75 74 65 |oft!maso|n@cs.ute|
|000001f0| 78 61 73 2e 65 64 75 20 | 28 44 61 76 65 20 4d 61 |xas.edu |(Dave Ma|
|00000200| 73 6f 6e 29 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |son).Org|anizatio|
|00000210| 6e 3a 20 54 4d 20 53 6f | 66 74 77 61 72 65 20 41 |n: TM So|ftware A|
|00000220| 73 73 6f 63 69 61 74 65 | 73 2c 20 54 6f 72 6f 6e |ssociate|s, Toron|
|00000230| 74 6f 0a 58 2d 53 75 62 | 6d 69 73 73 69 6f 6e 73 |to.X-Sub|missions|
|00000240| 3a 20 73 74 64 2d 75 6e | 69 78 40 75 75 6e 65 74 |: std-un|ix@uunet|
|00000250| 2e 75 75 2e 6e 65 74 0a | 44 61 74 65 3a 20 33 30 |.uu.net.|Date: 30|
|00000260| 20 44 65 63 20 39 30 20 | 31 36 3a 31 37 3a 34 30 | Dec 90 |16:17:40|
|00000270| 20 47 4d 54 0a 54 6f 3a | 20 73 74 64 2d 75 6e 69 | GMT.To:| std-uni|
|00000280| 78 40 75 75 6e 65 74 2e | 55 55 2e 4e 45 54 0a 0a |x@uunet.|UU.NET..|
|00000290| 53 75 62 6d 69 74 74 65 | 64 2d 62 79 3a 20 6d 61 |Submitte|d-by: ma|
|000002a0| 73 6f 6e 40 74 6d 73 6f | 66 74 2e 75 75 63 70 20 |son@tmso|ft.uucp |
|000002b0| 28 44 61 76 65 20 4d 61 | 73 6f 6e 29 0a 0a 49 6e |(Dave Ma|son)..In|
|000002c0| 20 61 72 74 69 63 6c 65 | 20 3c 31 36 33 30 37 40 | article| <16307@|
|000002d0| 63 73 2e 75 74 65 78 61 | 73 2e 65 64 75 3e 20 6a |cs.utexa|s.edu> j|
|000002e0| 66 68 40 72 70 70 33 38 | 36 2e 63 61 63 74 75 73 |fh@rpp38|6.cactus|
|000002f0| 2e 6f 72 67 20 28 4a 6f | 68 6e 20 46 20 48 61 75 |.org (Jo|hn F Hau|
|00000300| 67 68 20 49 49 29 20 77 | 72 69 74 65 73 3a 0a 3e |gh II) w|rites:.>|
|00000310| 53 75 62 6d 69 74 74 65 | 64 2d 62 79 3a 20 6a 66 |Submitte|d-by: jf|
|00000320| 68 40 72 70 70 33 38 36 | 2e 63 61 63 74 75 73 2e |h@rpp386|.cactus.|
|00000330| 6f 72 67 20 28 4a 6f 68 | 6e 20 46 20 48 61 75 67 |org (Joh|n F Haug|
|00000340| 68 20 49 49 29 0a 3e 49 | 6e 20 61 72 74 69 63 6c |h II).>I|n articl|
|00000350| 65 20 3c 31 36 32 37 31 | 40 63 73 2e 75 74 65 78 |e <16271|@cs.utex|
|00000360| 61 73 2e 65 64 75 3e 20 | 70 65 74 65 72 40 66 69 |as.edu> |peter@fi|
|00000370| 63 63 2e 66 65 72 72 61 | 6e 74 69 2e 63 6f 6d 20 |cc.ferra|nti.com |
|00000380| 28 50 65 74 65 72 20 64 | 61 20 53 69 6c 76 61 29 |(Peter d|a Silva)|
|00000390| 20 77 72 69 74 65 73 3a | 0a 3e 3e 48 6f 77 20 61 | writes:|.>>How a|
|000003a0| 62 6f 75 74 20 22 65 78 | 65 63 75 74 65 73 20 61 |bout "ex|ecutes a|
|000003b0| 6e 79 20 63 6f 64 65 20 | 74 68 61 74 20 63 68 61 |ny code |that cha|
|000003c0| 6e 67 65 73 20 74 68 65 | 20 73 74 61 74 65 20 6f |nges the| state o|
|000003d0| 66 20 74 68 65 20 70 72 | 6f 67 72 61 6d 22 2e 20 |f the pr|ogram". |
|000003e0| 53 6f 2c 0a 3e 3e 66 6f | 72 20 65 78 61 6d 70 6c |So,.>>fo|r exampl|
|000003f0| 65 3a 0a 3e 65 78 65 63 | 75 74 69 6e 67 20 3d 61 |e:.>exec|uting =a|
|00000400| 6e 79 3d 20 63 6f 64 65 | 20 63 68 61 6e 67 65 73 |ny= code| changes|
|00000410| 20 74 68 65 20 73 74 61 | 74 65 20 6f 66 20 74 68 | the sta|te of th|
|00000420| 65 20 70 72 6f 67 72 61 | 6d 2e 20 20 74 68 61 74 |e progra|m. that|
|00000430| 27 73 20 74 68 65 20 77 | 68 6f 6c 65 0a 3e 70 72 |'s the w|hole.>pr|
|00000440| 6f 62 6c 65 6d 20 77 69 | 74 68 20 74 68 69 73 20 |oblem wi|th this |
|00000450| 72 65 73 74 72 69 63 74 | 69 6f 6e 20 2d 20 68 6f |restrict|ion - ho|
|00000460| 77 20 6d 75 63 68 20 63 | 6f 64 65 20 69 73 20 74 |w much c|ode is t|
|00000470| 6f 6f 20 6d 75 63 68 2e | 0a 0a 54 68 65 20 72 65 |oo much.|..The re|
|00000480| 61 6c 20 72 65 71 75 69 | 72 65 6d 65 6e 74 20 69 |al requi|rement i|
|00000490| 73 20 70 72 65 73 75 6d | 61 62 6c 79 3a 20 60 60 |s presum|ably: ``|
|000004a0| 4d 75 73 74 20 6e 6f 74 | 20 65 78 65 63 75 74 65 |Must not| execute|
|000004b0| 20 61 6e 79 20 63 6f 64 | 65 20 74 68 61 74 0a 63 | any cod|e that.c|
|000004c0| 68 61 6e 67 65 73 20 4d | 45 4d 4f 52 59 2e 27 27 |hanges M|EMORY.''|
|000004d0| 20 41 73 20 62 6f 74 68 | 20 74 68 65 20 70 61 72 | As both| the par|
|000004e0| 65 6e 74 20 61 6e 64 20 | 63 68 69 6c 64 20 68 61 |ent and |child ha|
|000004f0| 76 65 20 74 68 65 69 72 | 20 6f 77 6e 20 72 65 67 |ve their| own reg|
|00000500| 69 73 74 65 72 0a 73 65 | 74 73 2e 20 20 4e 6f 77 |ister.se|ts. Now|
|00000510| 2c 20 65 78 70 72 65 73 | 73 69 6e 67 20 74 68 61 |, expres|sing tha|
|00000520| 74 20 69 6e 20 61 20 68 | 69 67 68 2d 6c 65 76 65 |t in a h|igh-leve|
|00000530| 6c 20 77 61 79 20 74 68 | 61 74 20 69 73 20 70 6f |l way th|at is po|
|00000540| 72 74 61 62 6c 65 20 6d | 61 79 0a 62 65 20 71 75 |rtable m|ay.be qu|
|00000550| 69 74 65 20 61 20 74 72 | 69 63 6b 2e 20 20 28 54 |ite a tr|ick. (T|
|00000560| 68 69 6e 6b 20 6f 66 20 | 53 50 41 52 43 20 76 73 |hink of |SPARC vs|
|00000570| 2e 20 33 38 36 20 76 73 | 2e 20 48 50 2f 33 30 30 |. 386 vs|. HP/300|
|00000580| 30 21 29 0a 0a 3e 3e 41 | 74 20 74 68 69 73 20 70 |0!)..>>A|t this p|
|00000590| 6f 69 6e 74 2c 20 75 6e | 6c 65 73 73 20 49 27 6d |oint, un|less I'm|
|000005a0| 20 63 6f 6e 66 75 73 65 | 64 20 61 62 6f 75 74 20 | confuse|d about |
|000005b0| 6c 65 67 61 6c 20 69 6e | 74 65 72 70 72 65 74 61 |legal in|terpreta|
|000005c0| 74 69 6f 6e 73 20 6f 66 | 20 22 71 66 6f 72 6b 28 |tions of| "qfork(|
|000005d0| 29 22 2c 0a 3e 3e 74 68 | 65 20 76 61 6c 75 65 20 |)",.>>th|e value |
|000005e0| 6f 66 20 22 63 68 69 6c | 64 22 20 69 73 20 69 6e |of "chil|d" is in|
|000005f0| 64 65 74 65 72 6d 69 6e | 61 74 65 2e 0a 0a 4e 6f |determin|ate...No|
|00000600| 74 20 69 66 20 69 74 27 | 73 20 61 20 72 65 67 69 |t if it'|s a regi|
|00000610| 73 74 65 72 20 76 61 72 | 69 61 62 6c 65 2e 0a 0a |ster var|iable...|
|00000620| 3e 77 68 61 74 20 69 73 | 20 70 72 6f 62 61 62 6c |>what is| probabl|
|00000630| 79 20 6e 65 65 64 65 64 | 20 69 73 20 61 20 22 73 |y needed| is a "s|
|00000640| 70 61 77 6e 28 29 22 20 | 66 75 6e 63 74 69 6f 6e |pawn()" |function|
|00000650| 20 28 67 6f 64 2c 20 69 | 20 6e 65 76 65 72 20 74 | (god, i| never t|
|00000660| 68 6f 75 67 68 74 20 69 | 27 64 0a 3e 61 64 76 6f |hought i|'d.>advo|
|00000670| 63 61 74 65 20 73 75 63 | 68 20 61 20 63 72 69 74 |cate suc|h a crit|
|00000680| 74 65 72 29 20 77 68 69 | 63 68 20 63 61 6e 20 62 |ter) whi|ch can b|
|00000690| 65 20 72 65 73 70 6f 6e | 73 69 62 6c 65 20 66 6f |e respon|sible fo|
|000006a0| 72 20 75 6e 64 65 72 73 | 74 61 6e 64 69 6e 67 20 |r unders|tanding |
|000006b0| 74 68 65 0a 3e 6c 65 67 | 61 6c 65 73 65 2e 20 20 |the.>leg|alese. |
|000006c0| 69 66 20 74 68 65 20 6f | 6e 6c 79 20 74 68 69 6e |if the o|nly thin|
|000006d0| 67 20 79 6f 75 20 63 61 | 6e 20 64 6f 20 61 66 74 |g you ca|n do aft|
|000006e0| 65 72 20 22 71 66 6f 72 | 6b 28 29 22 20 69 73 20 |er "qfor|k()" is |
|000006f0| 22 65 78 65 63 28 29 22 | 2c 20 77 68 79 0a 3e 6e |"exec()"|, why.>n|
|00000700| 6f 74 20 6d 65 72 67 65 | 20 74 68 65 20 74 77 6f |ot merge| the two|
|00000710| 20 73 74 65 70 73 20 69 | 6e 74 6f 20 61 20 73 69 | steps i|nto a si|
|00000720| 6e 67 6c 65 20 66 75 6e | 63 74 69 6f 6e 3f 20 20 |ngle fun|ction? |
|00000730| 73 6f 75 6e 64 73 20 6c | 69 6b 65 20 74 68 65 20 |sounds l|ike the |
|00000740| 6f 6e 6c 79 20 77 61 79 | 0a 3e 74 6f 20 67 65 74 |only way|.>to get|
|00000750| 20 69 74 20 72 69 67 68 | 74 20 61 6e 79 68 6f 77 | it righ|t anyhow|
|00000760| 2e 0a 0a 4e 6f 74 20 72 | 65 61 6c 6c 79 2e 20 20 |...Not r|eally. |
|00000770| 41 73 73 75 6d 69 6e 67 | 20 71 66 6f 72 6b 20 69 |Assuming| qfork i|
|00000780| 6e 20 74 68 65 20 70 61 | 72 65 6e 74 20 63 61 6e |n the pa|rent can|
|00000790| 20 6d 61 6b 65 20 73 75 | 72 65 20 74 68 65 72 65 | make su|re there|
|000007a0| 20 69 73 0a 6e 6f 74 68 | 69 6e 67 20 6f 6e 20 69 | is.noth|ing on i|
|000007b0| 74 73 20 73 74 61 63 6b | 20 28 74 68 61 74 20 69 |ts stack| (that i|
|000007c0| 74 20 6e 65 65 64 73 20 | 74 6f 20 72 65 74 72 69 |t needs |to retri|
|000007d0| 65 76 65 20 6c 61 74 65 | 72 29 20 62 65 66 6f 72 |eve late|r) befor|
|000007e0| 65 20 69 74 0a 65 78 65 | 63 75 74 65 73 20 74 68 |e it.exe|cutes th|
|000007f0| 65 20 73 79 73 74 65 6d | 20 63 61 6c 6c 20 69 6e |e system| call in|
|00000800| 73 74 72 75 63 74 69 6f | 6e 2c 20 61 6e 64 20 74 |structio|n, and t|
|00000810| 68 65 20 63 68 69 6c 64 | 20 64 6f 65 73 6e 27 74 |he child| doesn't|
|00000820| 20 64 6f 0a 61 6e 79 74 | 68 69 6e 67 20 65 78 63 | do.anyt|hing exc|
|00000830| 65 70 74 3a 0a 20 20 61 | 29 20 6d 61 6b 65 20 73 |ept:. a|) make s|
|00000840| 79 73 74 65 6d 20 63 61 | 6c 6c 73 20 74 68 61 74 |ystem ca|lls that|
|00000850| 20 63 68 61 6e 67 65 20 | 69 74 73 20 4b 45 52 4e | change |its KERN|
|00000860| 45 4c 20 73 74 61 74 65 | 20 28 6f 70 65 6e 20 66 |EL state| (open f|
|00000870| 69 6c 65 73 2c 20 55 49 | 44 2c 20 65 74 63 2e 29 |iles, UI|D, etc.)|
|00000880| 0a 20 20 62 29 20 63 68 | 61 6e 67 65 20 72 65 67 |. b) ch|ange reg|
|00000890| 69 73 74 65 72 20 76 61 | 72 69 61 62 6c 65 73 0a |ister va|riables.|
|000008a0| 71 66 6f 72 6b 20 63 61 | 6e 20 64 6f 20 65 76 65 |qfork ca|n do eve|
|000008b0| 72 79 74 68 69 6e 67 20 | 75 73 65 66 75 6c 20 74 |rything |useful t|
|000008c0| 68 61 74 20 76 66 6f 72 | 6b 20 63 61 6e 2e 20 28 |hat vfor|k can. (|
|000008d0| 41 6e 64 20 62 65 63 61 | 75 73 65 20 74 68 65 72 |And beca|use ther|
|000008e0| 65 27 73 20 6e 6f 0a 6d | 65 6d 6f 72 79 20 62 65 |e's no.m|emory be|
|000008f0| 69 6e 67 20 63 68 61 6e | 67 65 64 20 62 79 20 74 |ing chan|ged by t|
|00000900| 68 65 20 63 68 69 6c 64 | 20 74 68 61 74 20 63 61 |he child| that ca|
|00000910| 6e 20 62 65 20 69 6e 73 | 70 65 63 74 65 64 20 62 |n be ins|pected b|
|00000920| 79 20 74 68 65 20 70 61 | 72 65 6e 74 2c 20 61 0a |y the pa|rent, a.|
|00000930| 66 6f 72 6b 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |fork imp|lementat|
|00000940| 69 6f 6e 20 6f 66 20 71 | 66 6f 72 6b 20 69 73 20 |ion of q|fork is |
|00000950| 73 74 69 6c 6c 20 6c 65 | 67 61 6c 2e 29 0a 0a 28 |still le|gal.)..(|
|00000960| 50 65 72 73 6f 6e 61 6c | 6c 79 20 49 20 74 68 69 |Personal|ly I thi|
|00000970| 6e 6b 20 74 68 65 20 77 | 68 6f 6c 65 20 76 66 6f |nk the w|hole vfo|
|00000980| 72 6b 2f 71 66 6f 72 6b | 2f 73 70 61 77 6e 20 74 |rk/qfork|/spawn t|
|00000990| 68 69 6e 67 20 69 73 20 | 61 20 68 6f 72 72 69 62 |hing is |a horrib|
|000009a0| 6c 65 20 68 61 63 6b 2c | 0a 62 75 74 20 69 66 20 |le hack,|.but if |
|000009b0| 77 65 27 72 65 20 67 6f | 69 6e 67 20 74 6f 20 62 |we're go|ing to b|
|000009c0| 65 20 73 74 75 63 6b 20 | 77 69 74 68 20 69 74 2c |e stuck |with it,|
|000009d0| 20 6c 65 74 73 20 61 74 | 20 6c 65 61 73 74 20 64 | lets at| least d|
|000009e0| 6f 20 69 74 20 72 69 67 | 68 74 21 29 0a 0a 2d 2d |o it rig|ht!)..--|
|000009f0| 20 0a 22 44 6f 6e 27 74 | 20 62 72 65 61 6b 20 69 | ."Don't| break i|
|00000a00| 74 20 69 66 20 79 6f 75 | 20 63 61 6e 27 74 20 66 |t if you| can't f|
|00000a10| 69 78 20 69 74 2e 22 20 | 20 20 20 20 20 20 20 20 |ix it." | |
|00000a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a30| 20 20 20 20 2e 2e 2f 44 | 61 76 65 20 4d 61 73 6f | ../D|ave Maso|
|00000a40| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|00000a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a70| 20 20 20 20 3c 6d 61 73 | 6f 6e 25 74 6d 73 6f 66 | <mas|on%tmsof|
|00000a80| 74 40 63 73 2e 74 6f 72 | 6f 6e 74 6f 2e 65 64 75 |t@cs.tor|onto.edu|
|00000a90| 3e 0a 0a 56 6f 6c 75 6d | 65 2d 4e 75 6d 62 65 72 |>..Volum|e-Number|
|00000aa0| 3a 20 56 6f 6c 75 6d 65 | 20 32 32 2c 20 4e 75 6d |: Volume| 22, Num|
|00000ab0| 62 65 72 20 34 39 0a 0a | |ber 49..| |
+--------+-------------------------+-------------------------+--------+--------+