Re: Fork with gtk+-2.0



if U need some help now, read this reply to your question

I'm think that some code are not correct, I write it an another way
like this:
void

on_button_clicked (GtkButton *button,
gpointer user_data)

{

pid_t pid;
pid = fork();

if ((pid=fork())==0)
        execlp("/bin/xvkbd", "-geometry 800x185-0-0", NULL);
else
        g_print("Fork failed\n");
}

I think that is a right way ;-)

-- 
Alphex Kaanoken
Senior developer of Crew IT research labs
web: http://crew.org.ru
mailto:Alphex Crew Org RU



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