commit 1ba1341703dbd0d124d2de2a666277bb69b17da4
parent 5b56f4872c68b5a9403ac5c0d85c9160cce7857e
Author: hhvn <dev@hhvn.uk>
Date: Sat, 5 Jun 2021 23:18:44 +0100
main.c: use errno, not serrno for fork()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
@@ -150,7 +150,7 @@ main(int argc, char *argv[]) {
switch (pid = fork()) {
case -1:
- error("fork(): %s\n", strerror(serrno));
+ error("fork(): %s\n", strerror(errno));
shutdown(handle, SHUT_RDWR);
close(handle);
break;