RustConf 2023 - Beyond Ctrl-C the dark corners of Unix signal handling

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 10

  • @kelownatechkid
    @kelownatechkid 7 місяців тому +3

    This is super practical, and useful immediately!! Great talk

  • @sundarikuber6963
    @sundarikuber6963 7 місяців тому +2

    Excellent. Thanks Rain for your contribution

  • @fionawashere1086
    @fionawashere1086 8 місяців тому +1

    Loved the talk veeery much! Awesome presenter, very informative presentation!

  • @namesurname7665
    @namesurname7665 8 місяців тому +5

    Awesome talk. Thanks!

    • @rain3502
      @rain3502 8 місяців тому

      Thank you!

  • @oneofpro
    @oneofpro 8 місяців тому +4

    Very useful information. Thanks.

    • @rain3502
      @rain3502 8 місяців тому

      Thanks for the kind words!

  • @UberShinySheep
    @UberShinySheep 7 місяців тому +4

    Really useful video, just a bit of feedback for the editor that the slides could be much larger and the presenter video much smaller to make it easier to see the content

  • @meowsqueak
    @meowsqueak 8 місяців тому +2

    This is really useful, and most of this information is useful for non-Rust system programmers too. Thank you for such a great intro.
    Have you ever run into the situation where you receive a signal during an I/O operation and it returns EINTR, thus you need to go back and retry it? Is this mostly handled automatically by the Rust standard library, or does it need to be handled explicitly like we often (should) do in C?

    • @rain3502
      @rain3502 8 місяців тому +1

      Good question! The answer is that it depends.
      Rust's std::io::Write trait has two methods: `write` and `write_all`. `write` does not do a retry, but `write_all` does. If you can get away with `write_all` you should use that, but in many cases you can't... and then you have to remember to retry on interrupt. This is a pretty bad wart.