Re: Redirecting Output for a fork()'d Process
Re: Redirecting Output for a fork()'d Process
- Subject: Re: Redirecting Output for a fork()'d Process
- From: Michael Smith <email@hidden>
- Date: Fri, 13 Apr 2007 03:36:55 -0700
On Apr 13, 2007, at 3:29 AM, email@hidden wrote:
Maybe you should use perror instead of/in addition to this printf, so
you would get an English description of the problem (and your users
would understand the error message easily, too.
Filipe Cabecinhas
On 13 Apr, 2007, at 03:06, David Alger wrote:
printf("fopen failed on error: %d - redirectPath is: %s - line
number: %d\n", errno, redirectPath, __LINE__);
Actually, this is precisely what the functions in <err.h> are for.
See the manpages for err() and warn().
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden