aboutsummaryrefslogtreecommitdiff
path: root/src/util/os_priority.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2017-03-29 14:26:33 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2017-03-29 14:26:33 +0200
commitab281595eeb270120f89ec954a572f4fcf78fc53 (patch)
tree335a2caf503596adc400c5ebb9fb742f097bc5a3 /src/util/os_priority.c
parent59d393a1124cfd1aaffdf994bf6f8a9baaac8361 (diff)
parent2b87f173e360aaf4a3bac3fbc6e5b4dc44cf58cd (diff)
downloadgnunet-ab281595eeb270120f89ec954a572f4fcf78fc53.tar.gz
gnunet-ab281595eeb270120f89ec954a572f4fcf78fc53.zip
- merge with master
Diffstat (limited to 'src/util/os_priority.c')
-rw-r--r--src/util/os_priority.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/util/os_priority.c b/src/util/os_priority.c
index 4b1dbd491..2c4f7ca09 100644
--- a/src/util/os_priority.c
+++ b/src/util/os_priority.c
@@ -29,11 +29,11 @@
29#include "disk.h" 29#include "disk.h"
30#include <unistr.h> 30#include <unistr.h>
31 31
32#define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__) 32#define LOG(kind,...) GNUNET_log_from (kind, "util-os-priority", __VA_ARGS__)
33 33
34#define LOG_STRERROR(kind,syscall) GNUNET_log_from_strerror (kind, "util", syscall) 34#define LOG_STRERROR(kind,syscall) GNUNET_log_from_strerror (kind, "util-os-priority", syscall)
35 35
36#define LOG_STRERROR_FILE(kind,syscall,filename) GNUNET_log_from_strerror_file (kind, "util", syscall, filename) 36#define LOG_STRERROR_FILE(kind,syscall,filename) GNUNET_log_from_strerror_file (kind, "util-os-priority", syscall, filename)
37 37
38#define GNUNET_OS_CONTROL_PIPE "GNUNET_OS_CONTROL_PIPE" 38#define GNUNET_OS_CONTROL_PIPE "GNUNET_OS_CONTROL_PIPE"
39 39
@@ -1091,7 +1091,10 @@ start_process (int pipe_control,
1091 &lsocks_read, sizeof (HANDLE)); 1091 &lsocks_read, sizeof (HANDLE));
1092 } 1092 }
1093 else 1093 else
1094 {
1094 lsocks_pipe = NULL; 1095 lsocks_pipe = NULL;
1096 lsocks_write_fd = NULL;
1097 }
1095 1098
1096 env_off = 0; 1099 env_off = 0;
1097 if (GNUNET_YES == pipe_control) 1100 if (GNUNET_YES == pipe_control)
@@ -1229,7 +1232,7 @@ start_process (int pipe_control,
1229 if (sizeof (count) != wrote) 1232 if (sizeof (count) != wrote)
1230 { 1233 {
1231 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1234 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1232 "Failed to write %u count bytes to the child: %u\n", 1235 "Failed to write %u count bytes to the child: %lu\n",
1233 sizeof (count), GetLastError ()); 1236 sizeof (count), GetLastError ());
1234 break; 1237 break;
1235 } 1238 }
@@ -1240,7 +1243,7 @@ start_process (int pipe_control,
1240 if (SOCKET_ERROR == WSADuplicateSocketA (lsocks[i], gnunet_proc->pid, &pi)) 1243 if (SOCKET_ERROR == WSADuplicateSocketA (lsocks[i], gnunet_proc->pid, &pi))
1241 { 1244 {
1242 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1245 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1243 "Failed to duplicate an socket[%llu]: %u\n", i, 1246 "Failed to duplicate an socket[%u]: %lu\n", i,
1244 GetLastError ()); 1247 GetLastError ());
1245 break; 1248 break;
1246 } 1249 }
@@ -1257,7 +1260,7 @@ start_process (int pipe_control,
1257 if (sizeof (size) != wrote) 1260 if (sizeof (size) != wrote)
1258 { 1261 {
1259 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1262 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1260 "Failed to write %u size[%llu] bytes to the child: %u\n", 1263 "Failed to write %u size[%u] bytes to the child: %lu\n",
1261 sizeof (size), i, GetLastError ()); 1264 sizeof (size), i, GetLastError ());
1262 break; 1265 break;
1263 } 1266 }
@@ -1266,7 +1269,7 @@ start_process (int pipe_control,
1266 if (sizeof (pi) != wrote) 1269 if (sizeof (pi) != wrote)
1267 { 1270 {
1268 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1271 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1269 "Failed to write %u socket[%llu] bytes to the child: %u\n", 1272 "Failed to write %u socket[%u] bytes to the child: %lu\n",
1270 sizeof (pi), i, GetLastError ()); 1273 sizeof (pi), i, GetLastError ());
1271 break; 1274 break;
1272 } 1275 }