diff toys/posix/mkfifo.c @ 780:6cc69be43c42

Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to.
author Rob Landley <rob@landley.net>
date Wed, 02 Jan 2013 02:00:35 -0600
parents 4ca4134dad17
children 57f2a26fa92c
line wrap: on
line diff
--- a/toys/posix/mkfifo.c	Mon Dec 31 14:38:13 2012 -0600
+++ b/toys/posix/mkfifo.c	Wed Jan 02 02:00:35 2013 -0600
@@ -30,10 +30,6 @@
   TT.mode = 0666;
   if (toys.optflags & FLAG_m) TT.mode = string_to_mode(TT.m_string, 0);
 
-  for (s = toys.optargs; *s; s++) {
-    if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) {
-      perror_msg("cannot create fifo '%s'", *s);
-      toys.exitval = 1;
-    }
-  }
+  for (s = toys.optargs; *s; s++)
+    if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) perror_msg("%s", *s);
 }