wait for server to send script's exit status

This commit is contained in:
2026-05-18 21:58:01 +01:00
parent e2a87ea5c9
commit 4a7fc45704
+3 -1
View File
@@ -153,5 +153,7 @@ int main(int argc, char **argv)
exit(1);
}
/* FIXME: wait for bytes on socket signifying return value */
uint32_t exitstatus = 0;
recv(socket, (void *) &exitstatus, sizeof exitstatus, 0);
exit((int) ntohl(exitstatus));
}