uv: register __rfim_event 156 as UV_RENAME (#3540 3/3)
When the watched file is moved or removed, or an editor (e.g. vim) renames then creates the file, the __rfim_event 156 occurs. This is an undocumented event that should not happen, but register it as UV_RENAME for now since it is functionally equivalent. Co-authored-by: Gaby Baghdadi <baghdadi@ca.ibm.com>
This commit is contained in:
parent
571f898192
commit
6d9275e412
@ -648,6 +648,14 @@ static int os390_message_queue_handler(uv__os390_epoll* ep) {
|
||||
events = UV_CHANGE;
|
||||
else if (msg.__rfim_event == _RFIM_RENAME || msg.__rfim_event == _RFIM_UNLINK)
|
||||
events = UV_RENAME;
|
||||
else if (msg.__rfim_event == 156)
|
||||
/* TODO(gabylb): zos - this event should not happen, need to investigate.
|
||||
*
|
||||
* This event seems to occur when the watched file is [re]moved, or an
|
||||
* editor (like vim) renames then creates the file on save (for vim, that's
|
||||
* when backupcopy=no|auto).
|
||||
*/
|
||||
events = UV_RENAME;
|
||||
else
|
||||
/* Some event that we are not interested in. */
|
||||
return 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user