XMPP Service Operators - 2020-01-07


  1. tom

    How can I read of a stdio device in linux as root without stealing the device from a session?

  2. tom

    I know how to write to a standard device but not rad

  3. tom

    Read

  4. tom

    It's like the kernel is flapping back and forth

  5. jonas’

    tom, if by stdio you mean tty, you cannot. one of the two readers will win for each byte

  6. jonas’

    learnt that the hard way

  7. tom

    » <jonas’> tom, if by stdio you mean tty, you cannot. one of the two readers will win for each byte yeah, that's what it seems like. Bytes flapping between process one and process 2 despite opening the file in non-exclusive mode

  8. tom

    Writing oddly works just fine though

  9. tom

    Is does not appear pseudoterminals behave the same way as hardware terminals

  10. jonas’

    they do

  11. jonas’

    I learnt that effect with hardware terminals

  12. jonas’

    ttyS0 or something

  13. tom

    I wonder if that's the same case across other unixes like BSD or solaris

  14. jonas’

    I would be surprised if not

  15. jonas’

    it would be extra work to implement it the way you expect it

  16. jonas’

    a lot of extra work

  17. jonas’

    and extra memory consumption

  18. jonas’

    possibly infinite

  19. tom

    I see

  20. tom

    I understand why

  21. tom

    I just think it's odd at a superficial sense that you can very easily attach read-only to a Xsession if you are authorized

  22. tom

    But realtime monitoring of a terminal session, that's off the table

  23. jonas’

    that’s because X was meant for multiple clients from the beginning

  24. tom

    Architecture wise I understand it

  25. jonas’

    terminals on the other hand were point-to-point

  26. tom

    Xbeing a server with clients