Differences From Artifact [d69c7e1283]:
- File bgrd.c — part of check-in [196f94b613] at 2019-04-17 16:52:18 on branch trunk — add shit, updates (user: lexi, size: 6498) [annotate] [blame] [check-ins using]
To Artifact [930615166d]:
- File bgrd.c — part of check-in [7a21b1f19e] at 2019-04-23 02:01:14 on branch trunk — fix bug where bgrd also scooped stderr, thereby breaking my `surf` setup in neovim (user: lexi, size: 6485) [annotate] [blame] [check-ins using]
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
close(rd);
return 0;
}
child: {
close(rd);
// redirect stdout and stderr to our pty master
dup2(wr, 1);
dup2(wr, 2);
close(wr);
execv(argv[1],argv+2);
return 1; // THIS SHOULD NEVER HAPPEN
}
}
|
| < |
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
close(rd);
return 0;
}
child: {
close(rd);
// redirect stdout (NOT stderr) to our pty master
dup2(wr, 1);
close(wr);
execv(argv[1],argv+2);
return 1; // THIS SHOULD NEVER HAPPEN
}
}
|