install with -s
[unix-history] / usr / src / usr.bin / tee / tee.c
index 2dcbfda..0d3e9fa 100644 (file)
@@ -72,7 +72,7 @@ char **argv;
                                r = 0;
                                if(w<=0) {
                                        stash(p);
                                r = 0;
                                if(w<=0) {
                                        stash(p);
-                                       return;
+                                       exit(0);
                                }
                        }
                        out[p++] = in[r++];
                                }
                        }
                        out[p++] = in[r++];