home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v22 / 050 < prev    next >
Mailbox/MIME Entity  |  1991-03-07  |  2.0 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 Mon Dec 31 16:19:17 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 31 39 | 3a 31 37 20 31 39 39 30 |31 16:19|:17 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 30 30 35 39 30 |MTP ..id| AA00590|
|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 31 39 3a 31 | 37 20 2d 30 35 30 30 0a | 16:19:1|7 -0500.|
|000000a0| 50 6f 73 74 65 64 2d 44 | 61 74 65 3a 20 33 31 20 |Posted-D|ate: 31 |
|000000b0| 44 65 63 20 39 30 20 31 | 37 3a 33 39 3a 30 31 20 |Dec 90 1|7:39:01 |
|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 6a 61 73 6f 6e 40 | 63 6e 64 2e 68 70 2e 63 |: jason@|cnd.hp.c|
|00000100| 6f 6d 20 28 4a 61 73 6f | 6e 20 5a 69 6f 6e 73 29 |om (Jaso|n Zions)|
|00000110| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000120| 70 2e 73 74 64 2e 75 6e | 69 78 0a 53 75 62 6a 65 |p.std.un|ix.Subje|
|00000130| 63 74 3a 20 52 65 3a 20 | 71 66 6f 72 6b 28 29 0a |ct: Re: |qfork().|
|00000140| 4d 65 73 73 61 67 65 2d | 49 64 3a 20 3c 31 36 33 |Message-|Id: <163|
|00000150| 37 32 40 63 73 2e 75 74 | 65 78 61 73 2e 65 64 75 |72@cs.ut|exas.edu|
|00000160| 3e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 31 |>.Refere|nces: <1|
|00000170| 36 32 34 33 40 63 73 2e | 75 74 65 78 61 73 2e 65 |6243@cs.|utexas.e|
|00000180| 64 75 3e 20 3c 31 36 32 | 34 34 40 63 73 2e 75 74 |du> <162|44@cs.ut|
|00000190| 65 78 61 73 2e 65 64 75 | 3e 20 3c 31 36 32 34 35 |exas.edu|> <16245|
|000001a0| 40 63 73 2e 75 74 65 78 | 61 73 2e 65 64 75 3e 20 |@cs.utex|as.edu> |
|000001b0| 3c 31 36 32 37 31 40 63 | 73 2e 75 74 65 78 61 73 |<16271@c|s.utexas|
|000001c0| 2e 65 64 75 3e 20 3c 31 | 36 32 38 34 40 63 73 2e |.edu> <1|6284@cs.|
|000001d0| 75 74 65 78 61 73 2e 65 | 64 75 3e 20 3c 31 36 33 |utexas.e|du> <163|
|000001e0| 30 37 40 63 73 2e 75 74 | 65 78 61 73 2e 65 64 75 |07@cs.ut|exas.edu|
|000001f0| 3e 20 3c 31 36 33 36 39 | 40 63 73 2e 75 74 65 78 |> <16369|@cs.utex|
|00000200| 61 73 2e 65 64 75 3e 20 | 3c 31 36 33 37 30 40 63 |as.edu> |<16370@c|
|00000210| 73 2e 75 74 65 78 61 73 | 2e 65 64 75 3e 0a 53 65 |s.utexas|.edu>.Se|
|00000220| 6e 64 65 72 3a 20 6a 73 | 71 40 63 73 2e 75 74 65 |nder: js|q@cs.ute|
|00000230| 78 61 73 2e 65 64 75 0a | 4f 72 67 61 6e 69 7a 61 |xas.edu.|Organiza|
|00000240| 74 69 6f 6e 3a 20 48 65 | 77 6c 65 74 74 20 50 61 |tion: He|wlett Pa|
|00000250| 63 6b 61 72 64 2c 20 49 | 6e 66 6f 72 6d 61 74 69 |ckard, I|nformati|
|00000260| 6f 6e 20 4e 65 74 77 6f | 72 6b 73 20 47 72 6f 75 |on Netwo|rks Grou|
|00000270| 70 0a 58 2d 53 75 62 6d | 69 73 73 69 6f 6e 73 3a |p.X-Subm|issions:|
|00000280| 20 73 74 64 2d 75 6e 69 | 78 40 75 75 6e 65 74 2e | std-uni|x@uunet.|
|00000290| 75 75 2e 6e 65 74 0a 44 | 61 74 65 3a 20 33 31 20 |uu.net.D|ate: 31 |
|000002a0| 44 65 63 20 39 30 20 31 | 37 3a 33 39 3a 30 31 20 |Dec 90 1|7:39:01 |
|000002b0| 47 4d 54 0a 52 65 70 6c | 79 2d 54 6f 3a 20 73 74 |GMT.Repl|y-To: st|
|000002c0| 64 2d 75 6e 69 78 40 75 | 75 6e 65 74 2e 55 55 2e |d-unix@u|unet.UU.|
|000002d0| 4e 45 54 0a 54 6f 3a 20 | 73 74 64 2d 75 6e 69 78 |NET.To: |std-unix|
|000002e0| 40 75 75 6e 65 74 2e 55 | 55 2e 4e 45 54 0a 0a 53 |@uunet.U|U.NET..S|
|000002f0| 75 62 6d 69 74 74 65 64 | 2d 62 79 3a 20 6a 61 73 |ubmitted|-by: jas|
|00000300| 6f 6e 40 63 6e 64 2e 68 | 70 2e 63 6f 6d 20 28 4a |on@cnd.h|p.com (J|
|00000310| 61 73 6f 6e 20 5a 69 6f | 6e 73 29 0a 0a 3e 41 6c |ason Zio|ns)..>Al|
|00000320| 73 6f 2c 20 69 74 20 73 | 68 6f 75 6c 64 20 62 65 |so, it s|hould be|
|00000330| 20 72 65 6d 65 6d 62 65 | 72 65 64 20 74 68 61 74 | remembe|red that|
|00000340| 20 75 6e 69 78 20 73 79 | 73 74 65 6d 73 20 64 6f | unix sy|stems do|
|00000350| 6e 27 74 20 65 78 65 63 | 75 74 65 20 43 20 2d 20 |n't exec|ute C - |
|00000360| 74 68 65 79 0a 3e 65 78 | 65 63 75 74 65 20 6d 61 |they.>ex|ecute ma|
|00000370| 63 68 69 6e 65 20 69 6e | 73 74 72 75 63 74 69 6f |chine in|structio|
|00000380| 6e 73 20 67 65 6e 65 72 | 61 74 65 64 20 62 79 20 |ns gener|ated by |
|00000390| 74 68 65 20 43 20 63 6f | 6d 70 69 6c 65 72 2e 20 |the C co|mpiler. |
|000003a0| 20 53 6f 20 69 74 20 69 | 73 0a 3e 6e 65 63 65 73 | So it i|s.>neces|
|000003b0| 73 61 72 79 20 74 6f 20 | 73 70 65 63 69 66 79 20 |sary to |specify |
|000003c0| 74 68 65 20 62 65 68 61 | 76 69 6f 72 20 69 6e 20 |the beha|vior in |
|000003d0| 6d 61 63 68 69 6e 65 20 | 74 65 72 6d 73 20 69 66 |machine |terms if|
|000003e0| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 0a 3e 77 | the com|piler.>w|
|000003f0| 72 69 74 65 72 73 20 61 | 72 65 20 67 6f 69 6e 67 |riters a|re going|
|00000400| 20 74 6f 20 63 6f 6d 70 | 6c 79 2e 20 20 49 6e 20 | to comp|ly. In |
|00000410| 70 61 72 74 69 63 75 6c | 61 72 2c 20 74 68 65 72 |particul|ar, ther|
|00000420| 65 20 69 73 20 6e 6f 74 | 68 69 6e 67 20 74 6f 0a |e is not|hing to.|
|00000430| 3e 70 72 65 76 65 6e 74 | 20 74 68 65 20 63 6f 6d |>prevent| the com|
|00000440| 70 69 6c 65 72 20 66 72 | 6f 6d 20 6d 6f 76 69 6e |piler fr|om movin|
|00000450| 67 20 63 65 72 74 61 69 | 6e 20 63 6f 6d 70 75 74 |g certai|n comput|
|00000460| 61 74 69 6f 6e 73 20 74 | 6f 20 74 68 65 20 73 70 |ations t|o the sp|
|00000470| 61 63 65 0a 3e 62 65 74 | 77 65 65 6e 20 74 68 65 |ace.>bet|ween the|
|00000480| 20 71 66 6f 72 6b 20 61 | 6e 64 20 74 68 65 20 65 | qfork a|nd the e|
|00000490| 78 65 63 21 20 20 44 6f | 65 73 20 61 20 63 6f 6d |xec! Do|es a com|
|000004a0| 70 69 6c 65 72 20 6e 65 | 65 64 20 74 6f 20 72 65 |piler ne|ed to re|
|000004b0| 63 6f 67 6e 69 7a 65 0a | 3e 71 66 6f 72 6b 20 61 |cognize.|>qfork a|
|000004c0| 6e 64 20 65 78 65 63 20 | 61 73 20 73 70 65 63 69 |nd exec |as speci|
|000004d0| 61 6c 3f 0a 0a 54 68 61 | 74 27 73 20 73 70 65 63 |al?..Tha|t's spec|
|000004e0| 69 6f 75 73 2e 20 4f 66 | 20 2a 63 6f 75 72 73 65 |ious. Of| *course|
|000004f0| 2a 20 74 68 65 20 63 6f | 6d 70 69 6c 65 72 20 6e |* the co|mpiler n|
|00000500| 65 65 64 73 20 74 6f 20 | 72 65 63 6f 67 6e 69 7a |eeds to |recogniz|
|00000510| 65 20 73 79 73 74 65 6d | 20 63 61 6c 6c 73 20 61 |e system| calls a|
|00000520| 73 0a 73 79 6e 63 20 70 | 6f 69 6e 74 73 2e 20 49 |s.sync p|oints. I|
|00000530| 74 20 77 6f 75 6c 64 6e | 27 74 20 64 6f 20 66 6f |t wouldn|'t do fo|
|00000540| 72 20 74 68 65 20 63 6f | 6d 70 69 6c 65 72 20 74 |r the co|mpiler t|
|00000550| 6f 20 6d 69 67 72 61 74 | 65 20 74 68 65 20 69 6e |o migrat|e the in|
|00000560| 73 74 72 75 63 74 69 6f | 6e 73 0a 77 68 69 63 68 |structio|ns.which|
|00000570| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 61 20 77 72 | initial|ize a wr|
|00000580| 69 74 65 28 29 20 62 75 | 66 66 65 72 20 74 6f 20 |ite() bu|ffer to |
|00000590| 61 66 74 65 72 20 74 68 | 65 20 77 72 69 74 65 28 |after th|e write(|
|000005a0| 29 20 63 61 6c 6c 2c 20 | 77 6f 75 6c 64 20 69 74 |) call, |would it|
|000005b0| 3f 0a 0a 3e 46 69 6e 61 | 6c 6c 79 20 2d 20 69 66 |?..>Fina|lly - if|
|000005c0| 20 74 68 65 20 69 6e 74 | 65 6e 74 20 69 73 20 74 | the int|ent is t|
|000005d0| 6f 20 22 62 75 6e 64 6c | 65 22 20 66 6f 72 6b 20 |o "bundl|e" fork |
|000005e0| 61 6e 64 20 65 78 65 63 | 20 74 6f 67 65 74 68 65 |and exec| togethe|
|000005f0| 72 2c 0a 3e 61 73 73 75 | 6d 69 6e 67 20 6f 6e 6c |r,.>assu|ming onl|
|00000600| 79 20 74 68 61 74 20 74 | 68 65 20 66 6f 72 6b 20 |y that t|he fork |
|00000610| 73 75 63 63 65 65 64 73 | 2c 20 77 6f 75 6c 64 20 |succeeds|, would |
|00000620| 69 74 20 6e 6f 74 20 62 | 65 20 62 65 74 74 65 72 |it not b|e better|
|00000630| 20 74 6f 0a 3e 70 72 6f | 70 6f 73 65 20 66 65 78 | to.>pro|pose fex|
|00000640| 65 63 2a 20 2d 20 61 20 | 73 65 74 20 6f 66 20 65 |ec* - a |set of e|
|00000650| 78 65 63 20 63 61 6c 6c | 73 20 77 68 69 63 68 20 |xec call|s which |
|00000660| 66 6f 72 6b 20 66 69 72 | 73 74 3f 20 20 4f 66 20 |fork fir|st? Of |
|00000670| 63 6f 75 72 73 65 2c 0a | 3e 74 68 69 73 20 6d 61 |course,.|>this ma|
|00000680| 6b 65 73 20 69 74 20 61 | 62 73 6f 6c 75 74 65 6c |kes it a|bsolutel|
|00000690| 79 20 63 6c 65 61 72 20 | 74 68 61 74 20 6e 6f 74 |y clear |that not|
|000006a0| 68 69 6e 67 20 63 61 6e | 20 68 61 70 70 65 6e 20 |hing can| happen |
|000006b0| 62 65 74 77 65 65 6e 20 | 66 6f 72 6b 0a 3e 61 6e |between |fork.>an|
|000006c0| 64 20 65 78 65 63 2e 20 | 20 49 66 20 74 68 65 20 |d exec. | If the |
|000006d0| 63 6f 6d 62 69 6e 65 64 | 20 66 75 6e 63 74 69 6f |combined| functio|
|000006e0| 6e 20 69 73 20 74 68 65 | 6e 20 64 65 65 6d 65 64 |n is the|n deemed|
|000006f0| 20 75 73 65 6c 65 73 73 | 2c 20 68 6f 77 20 63 61 | useless|, how ca|
|00000700| 6e 0a 3e 74 68 65 20 71 | 66 6f 72 6b 2f 65 78 65 |n.>the q|fork/exe|
|00000710| 63 20 69 64 69 6f 6d 20 | 62 65 20 62 65 74 74 65 |c idiom |be bette|
|00000720| 72 3f 0a 0a 55 6d 2c 20 | 68 6f 77 20 61 62 6f 75 |r?..Um, |how abou|
|00000730| 74 20 22 65 78 69 73 74 | 69 6e 67 20 70 72 61 63 |t "exist|ing prac|
|00000740| 74 69 63 65 22 3f 20 4d | 6f 72 65 20 74 68 61 6e |tice"? M|ore than|
|00000750| 20 74 68 61 74 2c 20 74 | 68 65 72 65 27 73 20 61 | that, t|here's a|
|00000760| 20 77 68 6f 6c 65 20 72 | 61 66 74 20 6f 66 0a 63 | whole r|aft of.c|
|00000770| 6f 6d 6d 6f 6e 20 65 78 | 74 65 6e 73 69 6f 6e 73 |ommon ex|tensions|
|00000780| 20 72 65 76 6f 6c 76 69 | 6e 67 20 61 72 6f 75 6e | revolvi|ng aroun|
|00000790| 64 20 76 61 72 69 6f 75 | 73 20 66 6f 72 6d 73 20 |d variou|s forms |
|000007a0| 6f 66 20 71 66 6f 72 6b | 28 29 20 74 68 61 74 20 |of qfork|() that |
|000007b0| 6d 61 6e 79 20 77 6f 75 | 6c 64 0a 6c 69 6b 65 20 |many wou|ld.like |
|000007c0| 74 6f 20 73 65 65 20 72 | 65 6d 61 69 6e 20 61 73 |to see r|emain as|
|000007d0| 20 70 6f 73 73 69 62 6c | 65 20 65 78 74 65 6e 73 | possibl|e extens|
|000007e0| 69 6f 6e 73 2e 0a 0a 4a | 61 7a 7a 0a 0a 56 6f 6c |ions...J|azz..Vol|
|000007f0| 75 6d 65 2d 4e 75 6d 62 | 65 72 3a 20 56 6f 6c 75 |ume-Numb|er: Volu|
|00000800| 6d 65 20 32 32 2c 20 4e | 75 6d 62 65 72 20 35 30 |me 22, N|umber 50|
|00000810| 0a 0a | |.. | |
+--------+-------------------------+-------------------------+--------+--------+