comparison 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
comparison
equal deleted inserted replaced
779:90e98cdb1b7c 780:6cc69be43c42
28 char **s; 28 char **s;
29 29
30 TT.mode = 0666; 30 TT.mode = 0666;
31 if (toys.optflags & FLAG_m) TT.mode = string_to_mode(TT.m_string, 0); 31 if (toys.optflags & FLAG_m) TT.mode = string_to_mode(TT.m_string, 0);
32 32
33 for (s = toys.optargs; *s; s++) { 33 for (s = toys.optargs; *s; s++)
34 if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) { 34 if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) perror_msg("%s", *s);
35 perror_msg("cannot create fifo '%s'", *s);
36 toys.exitval = 1;
37 }
38 }
39 } 35 }