> +/* TODO: merge with kill.c */
> +int arg_to_signum (char *arg)
> +{
> +int numsig;
> +char *ep;
> +
> +if (isdigit(*arg)) {
This check is unnecessary.
> +numsig = strtol(arg, &ep, 10);
> +if (*ep!='\0' || numsig<0 || numsig>=NSIG)
> +return -1;
> +
Hi Karel,
I've attached a patch to add the "timeout" utility
which was previously discussed on coreutils and util-linux-ng lists.
I've tested this in a lot of situations and have
noted the following caveats:
If you start a command in the background, which reads from the tty
and so is immediately