Home » Community » U++ community news and announcements » Upp 2007.1beta3 released
Re: Upp 2007.1beta3 released [message #8161 is a reply to message #7939] |
Tue, 13 February 2007 12:45 |
piotr5
Messages: 107 Registered: November 2005
|
Experienced Member |
|
|
except for the already mentioned bugs, it just works great.
for the interrupted compilation I have found the solution,
I think:
--- upp-uvs/Web/sproc.cpp 2007-01-06 14:59:48.000000000 +0100
+++ test/Web/sproc.cpp 2007-02-13 03:11:48.000000000 +0100
@@ -111,7 +111,7 @@
if(rpipe[1] >= 0) { close(rpipe[1]); rpipe[1] = -1; }
if(wpipe[0] >= 0) { close(wpipe[0]); wpipe[0] = -1; }
if(wpipe[1] >= 0) { close(wpipe[1]); wpipe[1] = -1; }
- waitpid(pid, 0, WNOHANG | WUNTRACED);
+ if(pid) waitpid(pid, 0, WNOHANG | WUNTRACED);
pid = 0;
output_read = false;
#endif
@@ -328,7 +328,7 @@
kill(pid, SIGTERM);
GetExitCode();
int status;
- if(waitpid(pid, &status, 0) == pid)
+ if(pid && waitpid(pid, &status, 0) == pid)
DecodeExitCode(status);
exit_string = "Child process has been killed.\n";
}
and maybe
--- upp-uvs/ide/Host.cpp 2007-01-06 14:56:44.000000000 +0100
+++ test/ide/Host.cpp 2007-02-13 03:11:29.000000000 +0100
@@ -158,7 +158,7 @@
Vector<int>& pid = sPid();
int i = 0;
while(i < pid.GetCount())
- if(waitpid(pid[i], 0, WNOHANG | WUNTRACED) > 0)
+ if(pid[i] && waitpid(pid[i], 0, WNOHANG | WUNTRACED) > 0)
pid.Remove(i);
else
i++;
the point of this bugfix is that if one keeps calling waitpid
with an explicite pid, then using the pid "0" should be
avoided at all cost, as it does act in an unexpected way:
instead of waiting for the process with pid 0, it just
waits for any process with the same group-id as the calling
program, and thereby the exitcode could get lost...
|
|
|
|
|
Upp 2007.1beta3 released
By: unodgs on Thu, 01 February 2007 09:39
|
|
|
Re: Upp 2007.1beta3 released
By: ebojd on Thu, 01 February 2007 18:08
|
|
|
Re: Upp 2007.1beta3 released
By: mirek on Thu, 01 February 2007 18:17
|
|
|
Re: Upp 2007.1beta3 released
By: unodgs on Thu, 01 February 2007 18:27
|
|
|
Re: Upp 2007.1beta3 released
By: ebojd on Thu, 01 February 2007 21:13
|
|
|
Re: Upp 2007.1beta3 released
By: mirek on Thu, 01 February 2007 21:31
|
|
|
Re: Upp 2007.1beta3 released
By: ebojd on Thu, 01 February 2007 21:54
|
|
|
Re: Upp 2007.1beta3 released
By: mirek on Thu, 01 February 2007 22:09
|
|
|
Re: Upp 2007.1beta3 released
By: ebojd on Thu, 01 February 2007 22:14
|
|
|
Re: Upp 2007.1beta3 released
By: mirek on Thu, 01 February 2007 22:30
|
|
|
Re: Upp 2007.1beta3 released
By: ebojd on Thu, 01 February 2007 22:35
|
|
|
Re: Upp 2007.1beta3 released
By: ebojd on Thu, 01 February 2007 22:46
|
|
|
Re: Upp 2007.1beta3 released
By: lundman on Fri, 02 February 2007 13:50
|
|
|
Re: Upp 2007.1beta3 released
By: ebojd on Sun, 04 February 2007 17:50
|
|
|
Re: Upp 2007.1beta3 released
By: ebojd on Thu, 01 February 2007 22:31
|
|
|
Re: Upp 2007.1beta3 released
By: ebojd on Thu, 01 February 2007 21:47
|
|
|
Re: Upp 2007.1beta3 released
By: atmks on Sun, 04 February 2007 22:43
|
|
|
Re: Upp 2007.1beta3 released
By: mirek on Mon, 05 February 2007 07:37
|
|
|
Re: Upp 2007.1beta3 released
By: atmks on Mon, 05 February 2007 08:53
|
|
|
Re: Upp 2007.1beta3 released
By: piotr5 on Tue, 13 February 2007 12:45
|
|
|
Re: Upp 2007.1beta3 released
By: mirek on Sun, 18 February 2007 19:19
|
Goto Forum:
Current Time: Mon Apr 29 07:17:00 CEST 2024
Total time taken to generate the page: 0.06197 seconds
|