Author: hselasky
Date: Tue Mar 13 16:18:38 2018
New Revision: 330852
URL: https://svnweb.freebsd.org/changeset/base/330852

Log:
  MFC r330344:
  Correct the return code from pause() during cold startup from zero to
  EWOULDBLOCK. This also matches the description in pause(9).
  
  Discussed with:       kib@
  Sponsored by: Mellanox Technologies

Modified:
  stable/11/sys/kern/kern_synch.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_synch.c
==============================================================================
--- stable/11/sys/kern/kern_synch.c     Tue Mar 13 16:17:36 2018        
(r330851)
+++ stable/11/sys/kern/kern_synch.c     Tue Mar 13 16:18:38 2018        
(r330852)
@@ -328,7 +328,7 @@ pause_sbt(const char *wmesg, sbintime_t sbt, sbintime_
                sbt = howmany(sbt, SBT_1US);
                if (sbt > 0)
                        DELAY(sbt);
-               return (0);
+               return (EWOULDBLOCK);
        }
        return (_sleep(&pause_wchan[curcpu], NULL,
            (flags & C_CATCH) ? PCATCH : 0, wmesg, sbt, pr, flags));
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to