﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
305	Erroneous message msg=<No such process>, subroutine=<sh_fInotify_init_internal>	rainer	rainer	"There is an incorrect assignment of the errnum variable in sh_inotify.c (reported by [anonymous])which leads to the following useless error message:
{{{
ERROR : ... msg=<No such process>, subroutine=<sh_fInotify_init_internal>
}}}
{{{
--- src/sh_inotify.c~	2012-02-09 09:21:40.000000000 +0100
+++ src/sh_inotify.c	2012-08-09 19:29:33.524332502 +0200
@@ -638,7 +638,9 @@
 
 	      if (*errnum != 0)
 		{
-		  (*errnum == -1) ? *errnum = ENOMEM : EEXIST;
+                  /* zAVLInsert() returns -1 on malloc() error, and 3
+                     if the node already exists. */
+		  *errnum = (*errnum == -1) ? ENOMEM : EEXIST;
 		  sh_inotify_free_watch(item);
 		  retval = -1;
 		  goto retpoint;
}}}"	defect	closed	major	3.0.6	main		fixed		
