diff options
author | Colin Watson <cjwatson@debian.org> | 2018-04-03 08:20:28 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-04-03 08:57:25 +0100 |
commit | a0b2dce9bf518f561bbb5070c0fb0c38f49035dd (patch) | |
tree | 24298b823e93d4e6efe13f48f1512707ebd625f8 /entropy.c | |
parent | 9d4942dc192b6f1888c9ab73a512dd9b197b956c (diff) | |
parent | 76aa43d2298f322f0371b74462418d0461537131 (diff) |
New upstream release (7.7p1)
Diffstat (limited to 'entropy.c')
-rw-r--r-- | entropy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -108,7 +108,7 @@ get_random_bytes_prngd(unsigned char *buf, int len, | |||
108 | strlen(socket_path) + 1; | 108 | strlen(socket_path) + 1; |
109 | } | 109 | } |
110 | 110 | ||
111 | old_sigpipe = mysignal(SIGPIPE, SIG_IGN); | 111 | old_sigpipe = signal(SIGPIPE, SIG_IGN); |
112 | 112 | ||
113 | errors = 0; | 113 | errors = 0; |
114 | rval = -1; | 114 | rval = -1; |
@@ -158,7 +158,7 @@ reopen: | |||
158 | 158 | ||
159 | rval = 0; | 159 | rval = 0; |
160 | done: | 160 | done: |
161 | mysignal(SIGPIPE, old_sigpipe); | 161 | signal(SIGPIPE, old_sigpipe); |
162 | if (fd != -1) | 162 | if (fd != -1) |
163 | close(fd); | 163 | close(fd); |
164 | return rval; | 164 | return rval; |