~ft/aacdec

bbc7f161baf39a034cf02ae841e3ce72939e82ce — Sigrid Solveig Haflínudóttir 3 months ago 28f5666
plan9: waitpid()
1 files changed, 7 insertions(+), 1 deletions(-)

M frontend/main.c
M frontend/main.c => frontend/main.c +7 -1
@@ 194,6 194,8 @@ usage(void)
void
main(int argc, char **argv)
{
	int n;

	ARGBEGIN{
	default:
		usage();


@@ 202,5 204,9 @@ main(int argc, char **argv)
	Binit(&stdin, 0, OREAD);
	Binit(&stdout, 1, OWRITE);

	exits(decode() == 0 ? nil : "failed");
	n = decode();
	Bterm(&stdout);
	waitpid();

	exits(n == 0 ? nil : "failed");
}