FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-19-2009, 07:04 AM
skar
 
Default 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
 

Thread Tools




All times are GMT. The time now is 07:19 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org