Module Name: src
Committed By: christos
Date: Sun Mar 29 16:23:23 UTC 2009
Modified Files:
src/sys/kern: sys_sig.c
Log Message:
PR/41094: Matteo Beccati: sigtimedwait returns EAGAIN instead of EINVAL if
timeout is invalid
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/kern/sys_sig.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/sys_sig.c
diff -u src/sys/kern/sys_sig.c:1.21 src/sys/kern/sys_sig.c:1.22
--- src/sys/kern/sys_sig.c:1.21 Sat Jan 10 21:45:53 2009
+++ src/sys/kern/sys_sig.c Sun Mar 29 12:23:23 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_sig.c,v 1.21 2009/01/11 02:45:53 christos Exp $ */
+/* $NetBSD: sys_sig.c,v 1.22 2009/03/29 16:23:23 christos Exp $ */
/*-
* Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_sig.c,v 1.21 2009/01/11 02:45:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_sig.c,v 1.22 2009/03/29 16:23:23 christos Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -654,7 +654,7 @@
if (timo == 0 && ts.tv_sec == 0 && ts.tv_nsec > 0)
timo = 1;
if (timo <= 0)
- return (EAGAIN);
+ return EINVAL;
/*
* Remember current uptime, it would be used in