Index: bgrd.c ================================================================== --- bgrd.c +++ bgrd.c @@ -141,11 +141,11 @@ // interface; you can use one as a drop-in // replacement for the other, tho the creation // function syntax is a bit different. if(fork()) goto master; - else goto child; + else goto slave; master: { close(wr); char buf[256]; size_t sz; while(sz = read(rd, buf, 255)) { @@ -165,11 +165,11 @@ leave: { close(rd); return 0; } - child: { + slave: { close(rd); // redirect stdout (NOT stderr) to our pty master dup2(wr, 1); close(wr);