git: kernel: fix misleading error from allocating file descriptors

Daniel Fojt deef at crater.dragonflybsd.org
Thu Jun 11 04:15:55 PDT 2020


commit fa93c955d78045feb4abdb18af11b805718d6a79
Author: Daniel Fojt <df at neosystem.org>
Date:   Thu Jun 11 11:25:27 2020 +0200

    kernel: fix misleading error from allocating file descriptors
    
    Return EINVAL instead of EMFILE when requested new file descriptor number
    exceeds the limit.
    
    Discussed with: Sascha Wildner

Summary of changes:
 sys/kern/kern_descrip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fa93c955d78045feb4abdb18af11b805718d6a79


-- 
DragonFly BSD source repository



More information about the Commits mailing list