Changeset 35 for trunk/src/kmk/job.c


Ignore:
Timestamp:
Mar 18, 2003, 4:58:49 AM (22 years ago)
Author:
bird
Message:

emx is kind of working again...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/job.c

    r34 r35  
    990990        job->node->made = MADE;
    991991        Make_Update(job->node);
    992         free((Address)job);
     992        efree((Address)job);
    993993    } else if (*status != 0) {
    994994        errors += 1;
    995         free((Address)job);
     995        efree((Address)job);
    996996    }
    997997
     
    12401240#endif /* RMT_NO_EXEC */
    12411241
     1242#ifdef __EMX__
     1243    if ((cpid = fork()) == -1) {
     1244#else
    12421245    if ((cpid = vfork()) == -1) {
     1246#endif
    12431247        Punt("Cannot fork");
    12441248    } else if (cpid == 0) {
     
    18791883                Make_Update(job->node);
    18801884            }
    1881             free((Address)job);
     1885            efree((Address)job);
    18821886            return(JOB_FINISHED);
    18831887        } else {
    1884             free((Address)job);
     1888            efree((Address)job);
    18851889            return(JOB_ERROR);
    18861890        }
     
    21482152                 * There's still more in that thar buffer. This time, though,
    21492153                 * we know there's no newline at the end, so we add one of
    2150                  * our own free will.
     2154                 * our own efree will.
    21512155                 */
    21522156                if (*cp != '\0') {
     
    22112215                 * There's still more in that thar buffer. This time, though,
    22122216                 * we know there's no newline at the end, so we add one of
    2213                  * our own free will.
     2217                 * our own efree will.
    22142218                 */
    22152219                (void) fprintf(stdout, "%s", cp);
     
    27832787
    27842788    /*
    2785      * Do not free up the words themselves, since they might be in use by the
     2789     * Do not efree up the words themselves, since they might be in use by the
    27862790     * shell specification...
    27872791     */
    2788     free(words);
     2792    efree(words);
    27892793    return SUCCESS;
    27902794}
Note: See TracChangeset for help on using the changeset viewer.