Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3045

exec resource with timeout doesn't kill executed command that times out

    XMLWordPrintable

Details

    • 2
    • Client 2015-08-19, Client 2015-09-02
    • Bug Fix
    • On POSIX systems, Exec resources using the timeout parameter now send a TERM signal to the executed command if the timeout is exceeded.

    Description

      Trivial reproduction case:

      exec

      { "sleep": command => "/bin/sleep 1800", timeout => 10, }

      With this, Puppet exits after roughly 10 seconds, but the sleep continues to run until the 1800 seconds are over.

      My expectation would be for the sleep to get killed after the timeout hits.

      As far as I can tell, the relevant code didn't change (much) till current head, so I suspect the issue still exists.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              incase Sven Mueller
              Eric Thompson Eric Thompson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support