script.c (7bc6d0158f0e9863a2a13a951321185d214cd3be) | script.c (e1b4d8d0746069292d84708b0e11b17a7e1ef5e0) |
---|---|
1/* 2 * Copyright (c) 1980, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 171 unchanged lines hidden (view full) --- 180 (void)fwrite(ibuf, 1, cc, fscript); 181 } 182 } 183 } 184 if (n > 0 && FD_ISSET(master, &rfd)) { 185 cc = read(master, obuf, sizeof (obuf)); 186 if (cc <= 0) 187 break; | 1/* 2 * Copyright (c) 1980, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 171 unchanged lines hidden (view full) --- 180 (void)fwrite(ibuf, 1, cc, fscript); 181 } 182 } 183 } 184 if (n > 0 && FD_ISSET(master, &rfd)) { 185 cc = read(master, obuf, sizeof (obuf)); 186 if (cc <= 0) 187 break; |
188 (void)write(1, obuf, cc); | 188 (void)write(STDOUT_FILENO, obuf, cc); |
189 (void)fwrite(obuf, 1, cc, fscript); 190 } 191 tvec = time(0); 192 if (tvec - start >= flushtime) { 193 fflush(fscript); 194 start = tvec; 195 } 196 } --- 80 unchanged lines hidden --- | 189 (void)fwrite(obuf, 1, cc, fscript); 190 } 191 tvec = time(0); 192 if (tvec - start >= flushtime) { 193 fflush(fscript); 194 start = tvec; 195 } 196 } --- 80 unchanged lines hidden --- |