<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -87,31 +87,31 @@ namespace rubinius {
 
     // print out all the frames to stderr
     static const char msg[] = &quot;Error: signal &quot;;
-    write(2, msg, 14);
+    if(write(2, msg, 14) == 0) exit(101);
 
     switch(sig) {
     case SIGSEGV:
-      write(2, &quot;SIGSEGV\n&quot;, 8);
+      if(write(2, &quot;SIGSEGV\n&quot;, 8) == 0) exit(101);
       break;
     case SIGBUS:
-      write(2, &quot;SIGBUS\n&quot;, 7);
+      if(write(2, &quot;SIGBUS\n&quot;, 7) == 0) exit(101);
       break;
     case SIGILL:
-      write(2, &quot;SIGILL\n&quot;, 7);
+      if(write(2, &quot;SIGILL\n&quot;, 7) == 0) exit(101);
       break;
     case SIGABRT:
-      write(2, &quot;SIGABRT\n&quot;, 8);
+      if(write(2, &quot;SIGABRT\n&quot;, 8) == 0) exit(101);
       break;
     case SIGFPE:
-      write(2, &quot;SIGFPE\n&quot;, 7);
+      if(write(2, &quot;SIGFPE\n&quot;, 7) == 0) exit(101);
       break;
     default:
-      write(2, &quot;UNKNOWN\n&quot;, 8);
+      if(write(2, &quot;UNKNOWN\n&quot;, 8) == 0) exit(101);
       break;
     }
 
     // Try to get the output to flush...
-    write(2, &quot;\n\n&quot;, 2);
+    if(write(2, &quot;\n\n&quot;, 2) == 0) exit(101);
 
     // get void*'s for all entries on the stack
     size = backtrace(array, 32);
@@ -119,7 +119,7 @@ namespace rubinius {
     backtrace_symbols_fd(array, size, 2);
 
     // Try to get the output to flush...
-    write(2, &quot;\n\n&quot;, 2);
+    if(write(2, &quot;\n\n&quot;, 2) == 0) exit(101);
 
     exit(100);
   }
@@ -127,23 +127,23 @@ namespace rubinius {
 
   static void quit_handler(int sig) {
     static const char msg[] = &quot;Terminated: signal &quot;;
-    write(2, msg, sizeof(msg));
+    if(write(2, msg, sizeof(msg)) == 0) exit(1);
 
     switch(sig) {
     case SIGHUP:
-      write(2, &quot;SIGHUP\n&quot;, 6);
+      if(write(2, &quot;SIGHUP\n&quot;, 6) == 0) exit(1);
       break;
     case SIGTERM:
-      write(2, &quot;SIGTERM\n&quot;, 7);
+      if(write(2, &quot;SIGTERM\n&quot;, 7) == 0) exit(1);
       break;
     case SIGUSR1:
-      write(2, &quot;SIGUSR1\n&quot;, 7);
+      if(write(2, &quot;SIGUSR1\n&quot;, 7) == 0) exit(1);
       break;
     case SIGUSR2:
-      write(2, &quot;SIGUSR2\n&quot;, 7);
+      if(write(2, &quot;SIGUSR2\n&quot;, 7) == 0) exit(1);
       break;
     default:
-      write(2, &quot;UNKNOWN\n&quot;, 8);
+      if(write(2, &quot;UNKNOWN\n&quot;, 8) == 0) exit(1);
       break;
     }
 </diff>
      <filename>vm/environment.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3e0b86c11afcaae57b1805b21f355a82bfe7bba9</id>
    </parent>
  </parents>
  <author>
    <name>Charles Comstock</name>
    <email>dgtized@gmail.com</email>
  </author>
  <url>http://github.com/evanphx/rubinius/commit/f63d1146442fd92d925efbb5007a8172a0849c13</url>
  <id>f63d1146442fd92d925efbb5007a8172a0849c13</id>
  <committed-date>2009-11-06T12:59:59-08:00</committed-date>
  <authored-date>2009-11-06T12:59:59-08:00</authored-date>
  <message>fixed compile on gcc 4.4.1 as write requires use of return value</message>
  <tree>65ee033b01320a01321c34d11957d41a5be683e4</tree>
  <committer>
    <name>Charles Comstock</name>
    <email>dgtized@gmail.com</email>
  </committer>
</commit>
