Changeset 35 for trunk/src/kmk/job.c
- Timestamp:
- Mar 18, 2003, 4:58:49 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/job.c
r34 r35 990 990 job->node->made = MADE; 991 991 Make_Update(job->node); 992 free((Address)job);992 efree((Address)job); 993 993 } else if (*status != 0) { 994 994 errors += 1; 995 free((Address)job);995 efree((Address)job); 996 996 } 997 997 … … 1240 1240 #endif /* RMT_NO_EXEC */ 1241 1241 1242 #ifdef __EMX__ 1243 if ((cpid = fork()) == -1) { 1244 #else 1242 1245 if ((cpid = vfork()) == -1) { 1246 #endif 1243 1247 Punt("Cannot fork"); 1244 1248 } else if (cpid == 0) { … … 1879 1883 Make_Update(job->node); 1880 1884 } 1881 free((Address)job);1885 efree((Address)job); 1882 1886 return(JOB_FINISHED); 1883 1887 } else { 1884 free((Address)job);1888 efree((Address)job); 1885 1889 return(JOB_ERROR); 1886 1890 } … … 2148 2152 * There's still more in that thar buffer. This time, though, 2149 2153 * we know there's no newline at the end, so we add one of 2150 * our own free will.2154 * our own efree will. 2151 2155 */ 2152 2156 if (*cp != '\0') { … … 2211 2215 * There's still more in that thar buffer. This time, though, 2212 2216 * we know there's no newline at the end, so we add one of 2213 * our own free will.2217 * our own efree will. 2214 2218 */ 2215 2219 (void) fprintf(stdout, "%s", cp); … … 2783 2787 2784 2788 /* 2785 * Do not free up the words themselves, since they might be in use by the2789 * Do not efree up the words themselves, since they might be in use by the 2786 2790 * shell specification... 2787 2791 */ 2788 free(words);2792 efree(words); 2789 2793 return SUCCESS; 2790 2794 }
Note:
See TracChangeset
for help on using the changeset viewer.