Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   timeout package's timeout command not exiting with the exit status of the command it ran (http://www.linux-archive.org/ubuntu-user/282938-timeout-packages-timeout-command-not-exiting-exit-status-command-ran.html)

skar 11-19-2009 07:04 AM

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 07:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.