Module Name: src Committed By: riastradh Date: Sun Mar 16 15:52:18 UTC 2025
Modified Files: src/sys/kern: kern_exit.c Log Message: kern_exit.c: Sprinkle SET_ERROR. To generate a diff of this commit: cvs rdiff -u -r1.299 -r1.300 src/sys/kern/kern_exit.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_exit.c diff -u src/sys/kern/kern_exit.c:1.299 src/sys/kern/kern_exit.c:1.300 --- src/sys/kern/kern_exit.c:1.299 Sun Mar 16 15:51:50 2025 +++ src/sys/kern/kern_exit.c Sun Mar 16 15:52:18 2025 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_exit.c,v 1.299 2025/03/16 15:51:50 riastradh Exp $ */ +/* $NetBSD: kern_exit.c,v 1.300 2025/03/16 15:52:18 riastradh Exp $ */ /*- * Copyright (c) 1998, 1999, 2006, 2007, 2008, 2020, 2023 @@ -68,7 +68,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.299 2025/03/16 15:51:50 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.300 2025/03/16 15:52:18 riastradh Exp $"); #include "opt_ktrace.h" #include "opt_dtrace.h" @@ -1017,7 +1017,7 @@ find_stopped_child(struct proc *parent, if (options & ~WALLOPTS) { *child_p = NULL; - return EINVAL; + return SET_ERROR(EINVAL); } if ((options & WSELECTOPTS) == 0) { @@ -1028,7 +1028,7 @@ find_stopped_child(struct proc *parent, * indefinitely. */ *child_p = NULL; - return EINVAL; + return SET_ERROR(EINVAL); } if ((pid_t)id == WAIT_MYPGRP && (idtype == P_PID || idtype == P_PGID)) { @@ -1134,7 +1134,7 @@ find_stopped_child(struct proc *parent, if (child != NULL || error != 0 || ((options & WNOHANG) != 0 && dead == NULL)) { *child_p = child; - return error; + return SET_ERROR(error); } /*