GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Rich Felker (dalias@hachyderm.io)'s status on Thursday, 14-Aug-2025 19:36:35 JST Rich Felker Rich Felker

    @ayke It is a bug, not because you need that specific length duration, but because it fails an operation that's clearly meant as "permanent sleep until killed". Which is how it should be implemented.

    In conversation about 8 months ago from hachyderm.io permalink
    • Embed this notice
      Rich Felker (dalias@hachyderm.io)'s status on Thursday, 14-Aug-2025 20:19:02 JST Rich Felker Rich Felker
      in reply to
      • Jørn

      @jornane The default behavior of strtoll saturates on overflow. All you have to do is use the saturated value rather than treating it as an error.

      In conversation about 8 months ago permalink
    • Embed this notice
      Jørn (jornane@mastodon.bsd.cafe)'s status on Thursday, 14-Aug-2025 20:19:04 JST Jørn Jørn
      in reply to

      @dalias @ayke Which you can do with sleep one billion years. Or tee.

      Honestly, I'm happy they didn't go for "funny" number parsing; most number parse errors should return an error.

      In conversation about 8 months ago permalink
    • Embed this notice
      Rich Felker (dalias@hachyderm.io)'s status on Thursday, 14-Aug-2025 20:24:40 JST Rich Felker Rich Felker
      in reply to
      • Jørn

      @jornane It won't wake before the wait time because the hardware and operating civilization will be dead before 0.001% of the wait time.

      In conversation about 8 months ago permalink
    • Embed this notice
      Jørn (jornane@mastodon.bsd.cafe)'s status on Thursday, 14-Aug-2025 20:24:42 JST Jørn Jørn
      in reply to

      @dalias Ah that makes sense. I see no reason to check errno there if the only error that can occur is ERANGE.

      In conversation about 8 months ago permalink
    • Embed this notice
      Tony Finch (fanf@mendeddrum.org)'s status on Friday, 15-Aug-2025 02:14:59 JST Tony Finch Tony Finch
      in reply to
      • Leah Neukirchen

      @leah @dalias @ayke reminds me of one of the first y2038 bugs that occurred when a sleep 1000000000 stopped sleeping

      In conversation about 8 months ago permalink
    • Embed this notice
      Leah Neukirchen (leah@blahaj.social)'s status on Friday, 15-Aug-2025 02:15:01 JST Leah Neukirchen Leah Neukirchen
      in reply to

      @dalias @ayke Let's add "sleep inf" to POSIX next?

      In conversation about 8 months ago permalink
      Rich Felker repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.