public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Search Repo:
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
MessageChannel unit test: check for pipe creation failures
Hongli Lai (Phusion) (author)
Sun Apr 20 01:47:00 -0700 2008
commit  ddce16b124b8f8b1abd03916b62cfc3cac7fdacd
tree    8f6e111b598dc81a33e3330513a46902a0baf804
parent  dfc09b7292ab499fa0f8b99af0d42872fd4ea8ef
...
17
18
19
20
 
 
 
21
22
23
...
17
18
19
 
20
21
22
23
24
25
0
@@ -17,7 +17,9 @@
0
     int p[2];
0
 
0
     MessageChannelTest() {
0
- pipe(p);
0
+ if (pipe(p) != 0) {
0
+ throw SystemException("Cannot create a pipe", errno);
0
+ }
0
       reader = MessageChannel(p[0]);
0
       writer = MessageChannel(p[1]);
0
     }

Comments

    No one has commented yet.