[sos-devel] [RFC] wrap commands in /usr/bin/timeout when available

Bryn M. Reeves bmr at redhat.com
Mon Mar 19 17:17:43 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Folks,

So I thought out a proposal for a "timeout" command to use to address
our long-standing problem with commands that hang on us during data
collection.

Turns out (thanks Eric Blake! ;) that coreutils already introduced
this in 7.0 so it's available in all modern distros and should be an
easy backport to older stuff.

I think this probably hits 80% of the problems we see with "sosreport
hangs" reports. The rest is harder but this moves us in the right
direction (at the expense of some extra fork/exec overhead).

Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9najcACgkQ6YSQoMYUY97qvQCgiKV2y8rcVAiVYuSUqHxqwXXg
aLMAn3Pw282YNf3ffGgvS3/J4T4X0FlJ
=XbB/
-----END PGP SIGNATURE-----




More information about the sos-devel mailing list