Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(949)

Side by Side Diff: src/d8-posix.cc

Issue 21022003: Revert new OS and CC detection and related changes since r15923. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler-intrinsics.h ('k') | src/gdb-jit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Modern Linux has the waitid call, which is like waitpid, but more useful 359 // Modern Linux has the waitid call, which is like waitpid, but more useful
360 // if you want a timeout. If we don't have waitid we can't limit the time 360 // if you want a timeout. If we don't have waitid we can't limit the time
361 // waiting for the process to exit without losing the information about 361 // waiting for the process to exit without losing the information about
362 // whether it exited normally. In the common case this doesn't matter because 362 // whether it exited normally. In the common case this doesn't matter because
363 // we don't get here before the child has closed stdout and most programs don't 363 // we don't get here before the child has closed stdout and most programs don't
364 // do that before they exit. 364 // do that before they exit.
365 // 365 //
366 // We're disabling usage of waitid in Mac OS X because it doens't work for us: 366 // We're disabling usage of waitid in Mac OS X because it doens't work for us:
367 // a parent process hangs on waiting while a child process is already a zombie. 367 // a parent process hangs on waiting while a child process is already a zombie.
368 // See http://code.google.com/p/v8/issues/detail?id=401. 368 // See http://code.google.com/p/v8/issues/detail?id=401.
369 #if defined(WNOWAIT) && !V8_OS_ANDROID && !V8_OS_DARWN && \ 369 #if defined(WNOWAIT) && !defined(ANDROID) && !defined(__APPLE__) \
370 !V8_OS_NETBSD && !V8_OS_FREEBSD 370 && !defined(__NetBSD__)
371 #if !defined(__FreeBSD__)
371 #define HAS_WAITID 1 372 #define HAS_WAITID 1
372 #endif 373 #endif
374 #endif
373 375
374 376
375 // Get exit status of child. 377 // Get exit status of child.
376 static bool WaitForChild(int pid, 378 static bool WaitForChild(int pid,
377 ZombieProtector& child_waiter, 379 ZombieProtector& child_waiter,
378 struct timeval& start_time, 380 struct timeval& start_time,
379 int read_timeout, 381 int read_timeout,
380 int total_timeout) { 382 int total_timeout) {
381 #ifdef HAS_WAITID 383 #ifdef HAS_WAITID
382 384
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory)); 696 os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory));
695 os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment)); 697 os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment));
696 os_templ->Set(String::New("unsetenv"), 698 os_templ->Set(String::New("unsetenv"),
697 FunctionTemplate::New(UnsetEnvironment)); 699 FunctionTemplate::New(UnsetEnvironment));
698 os_templ->Set(String::New("umask"), FunctionTemplate::New(SetUMask)); 700 os_templ->Set(String::New("umask"), FunctionTemplate::New(SetUMask));
699 os_templ->Set(String::New("mkdirp"), FunctionTemplate::New(MakeDirectory)); 701 os_templ->Set(String::New("mkdirp"), FunctionTemplate::New(MakeDirectory));
700 os_templ->Set(String::New("rmdir"), FunctionTemplate::New(RemoveDirectory)); 702 os_templ->Set(String::New("rmdir"), FunctionTemplate::New(RemoveDirectory));
701 } 703 }
702 704
703 } // namespace v8 705 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler-intrinsics.h ('k') | src/gdb-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698