]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sulogin: replace older signal() with sigaction()
authorDave Reisner <d@falconindy.com>
Tue, 28 Feb 2012 16:45:13 +0000 (11:45 -0500)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Mar 2012 10:17:31 +0000 (11:17 +0100)
commit97795a73e957c0140f1ad2b67368668314ccf1b4
treeff7371fdf834a97e1624fb7d3c916270a1b6e41f
parent60706626649fd664135ee3b5dcde6a0c78392ef5
sulogin: replace older signal() with sigaction()

This provides a more reliable means of saving and restoring signal
handlers and avoids ugly (invalid) function pointer assignments. This
also removes the #ifdef blocking usage of a GCC attribute, which is
widely used in the rest of the codebase.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
login-utils/sulogin.c