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

Bug#574288: Please switch from DirectFB to X11



On Wed, Mar 17, 2010 at 21:50:58 +0100, Julien Cristau wrote:

> static void sighandler(int signo) {
> }
> 
> int main() {
>   signal(SIGUSR1, sighandler);
>   pid = fork();
>   if (pid < 0)
>     fail();
>   if (pid) {
>     pause();
>     return 0;
>   } else {
>     signal(SIGUSR1, SIG_IGN);
>     exec(Xorg);
>   }
> }
> 
can probably be done in sh with:

trap USR1 :
(trap USR1 ''; exec Xorg ) &
wait

Thanks to Samuel :)

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature


Reply to: