timeout package's timeout command not exiting with the exit status of the command it ran
Hi,
Timeout package's timeout command not exiting with the exit status of the command it ran. The relevant code in tct-1.11/src/misc/timeout.c is: > > while ((pid = wait(&status)) != -1 && pid != child_pid) > /* void */ ; > return (pid == child_pid ? status : -1); It should actually be: > while ((pid = wait(&status)) != -1 && pid != child_pid) > /* void */ ; > return (pid == child_pid ? status>>8: -1); Since the lower 8 bits give the signal received by the child, they aren't needed. I'd be thankful if some one could fix this and update the ubuntu package :) cheers, skar. -- -- The life so short, the craft so long to learn. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
| All times are GMT. The time now is 01:19 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.