Module Name: src
Committed By: snj
Date: Wed Apr 1 21:25:35 UTC 2009
Modified Files:
src/sys/kern [netbsd-5]: sys_sig.c
Log Message:
Pull up following revision(s) (requested by rmind in ticket #632):
sys/kern/sys_sig.c: revision 1.22
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.17 -r1.17.4.1 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.17 src/sys/kern/sys_sig.c:1.17.4.1
--- src/sys/kern/sys_sig.c:1.17 Wed Oct 15 06:51:20 2008
+++ src/sys/kern/sys_sig.c Wed Apr 1 21:25:35 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_sig.c,v 1.17 2008/10/15 06:51:20 wrstuden Exp $ */
+/* $NetBSD: sys_sig.c,v 1.17.4.1 2009/04/01 21:25:35 snj 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.17 2008/10/15 06:51:20 wrstuden Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_sig.c,v 1.17.4.1 2009/04/01 21:25:35 snj Exp $");
#include "opt_ptrace.h"
#include "opt_compat_netbsd.h"
@@ -640,7 +640,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