All pastes #47024 Raw Edit

Unnamed

public text v1 · immutable
#47024 ·published 2006-03-26 12:00 UTC
rendered paste body
    149                                 char tempname[L_tmpnam];
    150                                 lasterror = result = mkfifo(tmpnam(tempname), 0600);
    151                                 if (result < 0) {
    152                                         perror("dash");
    153                                         goto done;
    154                                 }
    155                                 vfdmap[command->pipe.vfd2] = open(tempname, O_WRONLY);
    156                                 vfdmap[command->pipe.vfd1] = open(tempname, O_RDONLY);
    157                                 unlink(tempname);