Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
python-libmount.12160
util-linux-agetty-smart-reload-01.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File util-linux-agetty-smart-reload-01.patch of Package python-libmount.12160
Backport. From c5955394a8eddc42cb9d14b15ef533af5aed6bc5 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec <sbrabec@suse.cz> Date: Wed, 10 Oct 2018 19:26:21 +0200 Subject: [PATCH 01/14] agetty: rename variable changed to triggered changed variable name is not correct. It does not say that network interface changed its address. It just says that the netlink message processing was triggered. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz> --- term-utils/agetty.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) Index: util-linux-2.28/term-utils/agetty.c =================================================================== --- util-linux-2.28.orig/term-utils/agetty.c +++ util-linux-2.28/term-utils/agetty.c @@ -1542,7 +1542,7 @@ static void open_netlink(void) } } -static int process_netlink_msg(int *changed) +static int process_netlink_msg(int *triggered) { char buf[4096]; struct sockaddr_nl snl; @@ -1582,7 +1582,7 @@ static int process_netlink_msg(int *chan return 0; } - *changed = 1; + *triggered = 1; break; } @@ -1591,9 +1591,9 @@ static int process_netlink_msg(int *chan static int process_netlink(void) { - int changed = 0; - while (process_netlink_msg(&changed)); - return changed; + int triggered = 0; + while (process_netlink_msg(&triggered)); + return triggered; } static int wait_for_term_input(int fd)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor