luad

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 4a7fc4570466569a9486bc84d87516ab6a133a3f
parent e2a87ea5c9097fe26f9213a82f00e2338e92bd2b
Author: Daniel Barlow <dan@telent.net>
Date:   Mon, 18 May 2026 21:58:01 +0100

wait for server to send script's exit status

Diffstat:
Mluac.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/luac.c b/luac.c @@ -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)); }