Re: PATCH: clear blocked AND pending on exec

From: Andrey Savochkin (saw@saw.sw.com.sg)
Date: Tue Jul 04 2000 - 02:36:01 EST


Hello,

On Mon, Jul 03, 2000 at 11:17:03PM -0500, Tim Hockin wrote:
> like my last patch, clear blocked signals on exec, but now clear blocked
> and pending signals on exec().

Why should exec() be so special in respect of signals?
What application do you have problems with?

> --- linux-2.2.16/fs/exec.c.orig Sun Jul 2 20:38:14 2000
> +++ linux-2.2.16/fs/exec.c Sun Jul 2 20:55:02 2000
> @@ -538,6 +538,8 @@
> current->self_exec_id++;
>
> flush_signal_handlers(current);
> + flush_signals(current);
> + sigemptyset(&current->blocked);
> flush_old_files(current->files);
>
> return 0;

Best regards
                                        Andrey V.
                                        Savochkin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:14 EST