Re: X-connection after a fork



On Thu, 5 Oct 2000, Jamie Guinan wrote:

> ...
> 
> /* Our usual callback function */
> void callback( GtkWidget *widget,
>                gpointer   data )
> {
> 	pid_t pid;
> 	int open_max;

Doh, left out "int i" right here.

>     g_print ("Hello again - %s was pressed\n", (char *) data);

And if your exec() fails, use _exit() like someone else
suggested.  Hrm, 

-Jamie





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