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

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

Issue 6673045: * Fix build errors on FreeBSD 8.2... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 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 | « SConstruct ('k') | src/platform.h » ('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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 // if you want a timeout. If we don't have waitid we can't limit the time 368 // if you want a timeout. If we don't have waitid we can't limit the time
369 // waiting for the process to exit without losing the information about 369 // waiting for the process to exit without losing the information about
370 // whether it exited normally. In the common case this doesn't matter because 370 // whether it exited normally. In the common case this doesn't matter because
371 // we don't get here before the child has closed stdout and most programs don't 371 // we don't get here before the child has closed stdout and most programs don't
372 // do that before they exit. 372 // do that before they exit.
373 // 373 //
374 // We're disabling usage of waitid in Mac OS X because it doens't work for us: 374 // We're disabling usage of waitid in Mac OS X because it doens't work for us:
375 // a parent process hangs on waiting while a child process is already a zombie. 375 // a parent process hangs on waiting while a child process is already a zombie.
376 // See http://code.google.com/p/v8/issues/detail?id=401. 376 // See http://code.google.com/p/v8/issues/detail?id=401.
377 #if defined(WNOWAIT) && !defined(ANDROID) && !defined(__APPLE__) 377 #if defined(WNOWAIT) && !defined(ANDROID) && !defined(__APPLE__)
378 #if !defined(__FreeBSD__)
378 #define HAS_WAITID 1 379 #define HAS_WAITID 1
379 #endif 380 #endif
381 #endif
380 382
381 383
382 // Get exit status of child. 384 // Get exit status of child.
383 static bool WaitForChild(int pid, 385 static bool WaitForChild(int pid,
384 ZombieProtector& child_waiter, 386 ZombieProtector& child_waiter,
385 struct timeval& start_time, 387 struct timeval& start_time,
386 int read_timeout, 388 int read_timeout,
387 int total_timeout) { 389 int total_timeout) {
388 #ifdef HAS_WAITID 390 #ifdef HAS_WAITID
389 391
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory)); 686 os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory));
685 os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment)); 687 os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment));
686 os_templ->Set(String::New("unsetenv"), 688 os_templ->Set(String::New("unsetenv"),
687 FunctionTemplate::New(UnsetEnvironment)); 689 FunctionTemplate::New(UnsetEnvironment));
688 os_templ->Set(String::New("umask"), FunctionTemplate::New(SetUMask)); 690 os_templ->Set(String::New("umask"), FunctionTemplate::New(SetUMask));
689 os_templ->Set(String::New("mkdirp"), FunctionTemplate::New(MakeDirectory)); 691 os_templ->Set(String::New("mkdirp"), FunctionTemplate::New(MakeDirectory));
690 os_templ->Set(String::New("rmdir"), FunctionTemplate::New(RemoveDirectory)); 692 os_templ->Set(String::New("rmdir"), FunctionTemplate::New(RemoveDirectory));
691 } 693 }
692 694
693 } // namespace v8 695 } // namespace v8
OLDNEW
« no previous file with comments | « SConstruct ('k') | src/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698