Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:ALP:Workbench:1.0
tcpd
tcp_wrappers_7.6-fedora-sigalarm.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tcp_wrappers_7.6-fedora-sigalarm.diff of Package tcpd
--- rfc931.c.orig +++ rfc931.c @@ -92,6 +92,8 @@ char *dest; char *cp; char *result = unknown; FILE *fp; + unsigned saved_timeout; + struct sigaction nact, oact; #ifdef INET6 /* address family must be the same */ @@ -134,7 +136,12 @@ char *dest; */ if (sigsetjmp(timebuf, 1) == 0) { - signal(SIGALRM, timeout); + /* Save SIGALRM timer and handler. Sudheer Abdul-Salam, SUN. */ + saved_timeout = alarm(0); + nact.sa_handler = timeout; + nact.sa_flags = 0; + (void) sigemptyset(&nact.sa_mask); + (void) sigaction(SIGALRM, &nact, &oact); alarm(rfc931_timeout); /* @@ -223,6 +230,10 @@ char *dest; } alarm(0); } + /* Restore SIGALRM timer and handler. Sudheer Abdul-Salam, SUN. */ + (void) sigaction(SIGALRM, &oact, NULL); + if (saved_timeout > 0) + alarm(saved_timeout); fclose(fp); } STRN_CPY(dest, result, STRING_LENGTH);
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