Find the answer to your Linux question:
Results 1 to 2 of 2
Hi friends, My GNU Screen(process) is struck at write() system call. I tried to attach strace to the process. here is the output. *************************************** $ /usr/bin/strace -ivx -p 5477 (screen ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    1

    Post process struck at write() call


    Hi friends,

    My GNU Screen(process) is struck at write() system call. I tried to attach strace to the process. here is the output.
    ***************************************
    $ /usr/bin/strace -ivx -p 5477 (screen pid)
    Process 5477 attached - interrupt to quit
    [008fb7a2] write(4, "\x0d\x1b\x5b\x33\x39\x42\x1b\x5b\x37\x6d\x53\x77\ x69\x74"..., 4020 <unfinished ...>
    Process 5477 detached
    ***************************************

    Can somebody point me on how to overcome this problem? It will be nice if you can let me know what exactly it is doing in this write() system call.

    Thanks in advance

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,454
    The question should be, what is it writing to? The write() function will block until it is complete unless you make the connection/operation non-blocking. Then you can check the state of the connection if the bytes written don't agree with the number passed.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •