#305 closed defect (fixed)
Erroneous message msg=<No such process>, subroutine=<sh_fInotify_init_internal>
| Reported by: | rainer | Owned by: | rainer |
|---|---|---|---|
| Priority: | major | Milestone: | 3.0.6 |
| Component: | main | Version: | |
| Keywords: | Cc: |
Description
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;
Note:
See TracTickets
for help on using tickets.
Believed to be fixed by changeset [405].