ref: c615586e7319b2514c5e31697adca76247cfb54d
parent: ee5be0d4d45549d727f46c720158a75b02d53ade
author: Ori Bernstein <[email protected]>
date: Sat Mar 25 15:36:23 EDT 2023
upas/runq: we don't care about the waitmsg, use waitpid
--- a/sys/src/cmd/upas/q/runq.c
+++ b/sys/src/cmd/upas/q/runq.c
@@ -577,7 +577,6 @@
char buf[256], attachment[Pathlen], *sender;
int fd, pfd[2];
long n;
- Waitmsg *wm;
String *s;
if(av[1] == 0 || av[2] == 0){
@@ -634,8 +633,7 @@
break;
if(write(pfd[1], buf, n) != n){
close(fd);
- wm = wait();
- free(wm);
+ waitpid();
return -1;
}
}
@@ -642,8 +640,7 @@
close(fd);
}
close(pfd[1]);
- wm = wait();
- free(wm);
+ waitpid();
return 0;
}