https://bugs.kde.org/show_bug.cgi?id=493418

--- Comment #4 from Mark Wielaard <m...@klomp.org> ---
(In reply to Alexandra Hajkova from comment #3)
> Created attachment 174899 [details]
> patch
> 
> Warn when fd number never opened by the program

Yes, looks OKish. But ML_(find_fd_recorded_by_fd) only works for never created
fds (error kind 2) and might give a false positive if there isn't a pathname
associated with the OpenFd. Better to have a dedicated function to search for
any OpenFd and check the closed flag explicitly. Then you can report on both
error kind 2 and 3. For  created, then destroyed fds you need the pathname,
description, where_opened, where_closed info anyway.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to