Menu

#522 5.2-p01: agent deadlock on exec

closed
None
5
2012-11-08
2004-10-22
No

An exec script that outputs more data than the default
OS buffer size for a pipe will block, waiting for the
buffer to empty so it can write more data.
Unfortunately, the agent waits for the exec to complete
before attempting to read the output, causing a deadlock.

This patch reads data from the pipe periodically, thus
preventing the deadlock.

Discussion

  • Robert Story

    Robert Story - 2004-12-10

    patch for exec deadlock

     
  • Robert Story

    Robert Story - 2004-12-10

    Logged In: YES
    user_id=76148

    second version of patch, which handles one more bad input
    case, applied for 5.3 and 5.2.1.

     
  • Robert Story

    Robert Story - 2004-12-10

    Logged In: YES
    user_id=76148

    also applied for 5.1.3

     

Log in to post a comment.