[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r21642 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r21642 - gnunet/src/util |
Date: |
Wed, 30 May 2012 14:56:40 +0200 |
Author: grothoff
Date: 2012-05-30 14:56:40 +0200 (Wed, 30 May 2012)
New Revision: 21642
Modified:
gnunet/src/util/os_priority.c
Log:
-better errno handling
Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c 2012-05-30 12:45:23 UTC (rev 21641)
+++ gnunet/src/util/os_priority.c 2012-05-30 12:56:40 UTC (rev 21642)
@@ -811,8 +811,11 @@
ret = fork ();
if (-1 == ret)
{
+ int eno = errno;
+
LOG_STRERROR (GNUNET_ERROR_TYPE_ERROR, "fork");
GNUNET_free_non_null (childpipename);
+ errno = eno;
return NULL;
}
if (0 != ret)
@@ -1184,9 +1187,12 @@
ret = fork ();
if (-1 == ret)
{
+ int eno = errno;
+
LOG_STRERROR (GNUNET_ERROR_TYPE_ERROR, "fork");
GNUNET_free_non_null (childpipename);
GNUNET_array_grow (lscp, ls, 0);
+ errno = eno;
return NULL;
}
if (0 != ret)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r21642 - gnunet/src/util,
gnunet <=