Re: [PATCH] ionice: clean up error handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 27, 2007 at 04:49:19PM +0200, Matthias Koenig wrote:
> Print error in case execvp fails and use exit macros.
> 
> Based on patch by Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx>
> 
> Signed-off-by: Matthias Koenig <mkoenig@xxxxxxx>
....
> +			/* execvp should never return */
> +			perror("execvp");
> +			exit(EXIT_FAILURE);
> +		}
>  	}
>  
>  	return 0;
    ^^^^^^^^
 exit(EXIT_SUCCESS);   :-)


 Fixed, applied, thanks!

 I'd like to use EXIT_ macros in all utils.  It's already in TODO for
 2.14.

    Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux