Ticket #4889: ignore-broken-pipe-error-when-writing-to-a-died-process.dpatch

File ignore-broken-pipe-error-when-writing-to-a-died-process.dpatch, 4.4 KB (added by guest, 3 years ago)
Line 
11 patch for repository http://darcs.haskell.org/packages/process:
2
3Tue Jan 11 19:38:18 Central European Standard Time 2011  gracjanpolak@gmail.com
4  * Ignore broken pipe error when writing to a died process
5
6New patches:
7
8[Ignore broken pipe error when writing to a died process
9gracjanpolak@gmail.com**20110111183818
10 Ignore-this: e17ca50ef7d321ecf6bfb3625a1fd785
11] hunk ./System/Process.hs 418
12     _ <- forkIO $ C.evaluate (length err) >> putMVar outMVar ()
13 
14     -- now write and flush any input
15-    when (not (null input)) $ do hPutStr inh input; hFlush inh
16-    hClose inh -- done with stdin
17+    -- ignore if we cannot write everything to the process
18+    when (not (null input)) $
19+         C.handle ((\e -> return ()) :: (C.IOException -> IO ())) $ do
20+                                           hPutStr inh input
21+                                           hFlush inh
22+                                           hClose inh -- done with stdin
23 
24     -- wait on the output
25     takeMVar outMVar
26
27Context:
28
29[doc fix: clarify the encoding and newline translation used by pipe Handles
30Simon Marlow <marlowsd@gmail.com>**20101129115629
31 Ignore-this: 614bf6249ec70269369e48bc6544c4c4
32]
33[fix building with GHC < 7.0
34Simon Marlow <marlowsd@gmail.com>**20100925194542
35 Ignore-this: 843b38fea6de1c73d03b8ec0d17b594b
36]
37[Allow waitForProcess to be interrupted by throwTo (and hence Ctrl-C)
38Simon Marlow <marlowsd@gmail.com>**20100925191740
39 Ignore-this: ab75d32e4eaddf31468ee35704d4448c
40]
41[Close error handle in readProcessWithExitCode
42gracjanpolak@gmail.com**20101004174814
43 Ignore-this: d03957ab69399f705def216618b9bb9
44]
45[Merge System.Process.translate with System.Process.Internals.translate
46Ian Lynagh <igloo@earth.li>**20100928225734
47 Ignore-this: fe22507801ef5149c9f6e7ae90742948
48 Avoids a name collision on Windows
49]
50[Define showCommandForUser; fixes proposal #4305
51Ian Lynagh <igloo@earth.li>**20100926210604]
52[Bump dependencies
53Ian Lynagh <igloo@earth.li>**20100917183932
54 Ignore-this: e82e3d219c8124f7e5c863b8d4f88ade
55]
56[Bump version number 1.0.1.3 -> 1.0.1.4
57Ian Lynagh <igloo@earth.li>**20100916161914]
58[fix #4198 with BINDIST=YES (config.compiler needs to be quoted)
59Simon Marlow <marlowsd@gmail.com>**20100914092414
60 Ignore-this: 34e2d42e62cf117aceab36af0adb2c03
61]
62[Whitespace only
63Ian Lynagh <igloo@earth.li>**20100912104516]
64[add a test for #4198
65Simon Marlow <marlowsd@gmail.com>**20100813151121
66 Ignore-this: aca2dab2209e68ac430a94e98756b52b
67]
68[Cope with an exit code of -1 (#4198)
69Simon Marlow <marlowsd@gmail.com>**20100813151038
70 Ignore-this: 6d12b19749b8a6f5d38c89aa9ace86d8
71]
72[Fix comment typo and whitespace
73Ian Lynagh <igloo@earth.li>**20100711102627
74 Ignore-this: b4bb0371a5511ff862d79dd8f8026ba8
75]
76[Correct documentation of readProcess
77Simon Hengel <simon.hengel@wiktory.org>**20100711075517
78 Ignore-this: 473457730146d2d93dd3ddbdae56f78e
79 
80  * The return type is not 'Either (ExitCode, String) String', it is just
81    'String'
82  * readProcess does not return stderr + stdout, it returns just stdout
83]
84[bump version to 1.0.1.3
85Ian Lynagh <igloo@earth.li>**20100519181550]
86[Fix #4074: disable the timer signal around fork()
87Simon Marlow <marlowsd@gmail.com>**20100518083617
88 Ignore-this: 3a3cb5ddb04715a499eccf523f6f56b4
89]
90[Allow filepath-1.2.*
91Simon Marlow <marlowsd@gmail.com>**20100505101104
92 Ignore-this: 4314b3bb5af924c3354ba85bace525ba
93]
94[Add comments re: #431
95Simon Marlow <marlowsd@gmail.com>**20091211100540
96 Ignore-this: 98ababbd89b873bdab7ccb398d28d4b9
97]
98[Fix the 3231 test
99Ian Lynagh <igloo@earth.li>**20091209195024]
100[Add aclocal.m4 to extra-source-files
101Ian Lynagh <igloo@earth.li>**20090921165620]
102[Bump version to 1.0.1.2
103Ian Lynagh <igloo@earth.li>**20090920141949]
104[Fix unportable use of sleep(1)
105Matthias Kilian <kili@outback.escape.de>**20090829093720
106 Ignore-this: c23892584741f1b5206952abd3e47177
107 `sleep 1s' is probably a GNUism; `sleep 1' should do the same in a
108 portable way.
109]
110[fix parallel test bugs
111Simon Marlow <marlowsd@gmail.com>**20090727125348
112 Ignore-this: 42b1fb60cb0dc9085483a9a0049c4167
113]
114[Use Unicode strings for the command and working dir on Windows
115Simon Marlow <marlowsd@gmail.com>**20090630091508
116 Ignore-this: 2bb455399a1d68d54aeeeeb0427f8636
117]
118[Fix some "warn-unused-do-bind" warnings where we want to ignore the value
119Ian Lynagh <igloo@earth.li>**20090710201717]
120[Remove unused imports
121Ian Lynagh <igloo@earth.li>**20090707115856]
122[TAG 2009-06-25
123Ian Lynagh <igloo@earth.li>**20090625160350]
124Patch bundle hash:
125f3221e06d59e136d9ab17ebdfe9c349fe51a950f