On Tue, Nov 15, 2005 at 06:34:31AM +0300, Olleg Samoylov wrote:
> Package: wmmount
> Version: 1.0beta2-6
> Severity: normal
> 
> Don't work with umountcmd=/usr/bin/eject.
> Here patch:
> --- wmmount-1.0beta2.orig/wmmount.c
> +++ wmmount-1.0beta2/wmmount.c
> @@ -861,6 +861,7 @@
>  
>    pid=fork();
>    if(pid==0) {
> +    signal(SIGCHLD, SIG_DFL);
>      if(path!=NULL)
>        chdir(path);
>      execv(argv[0], argv);

I don't quite get it. For me, there seems to be no problem in using
eject(1), which works only for CD/DVD drives, of course.

Why set the signal handler to the default one for SIGCHLD? The default
handler for SIGCHLD is to ignore it anyway, according to signal(7).
Is it not?

-- 
     2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to