SCCS-vsn: sys/kern/kern_sig.c 6.18
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)kern_sig.c 6.17 (Berkeley) %G%
+ * @(#)kern_sig.c 6.18 (Berkeley) %G%
*/
#include "../machine/reg.h"
*/
#include "../machine/reg.h"
if (signo)
psignal(p, signo);
}
if (signo)
psignal(p, signo);
}
- return (f == 0 ? ESRCH : error);
+ return (error ? error : (f == 0 ? ESRCH : 0));