This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Implementation of HTML Timers (setInterval/setTimeout) based on sleep. | |
* | |
* This file is provided under the following terms (MIT License): | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// WhereAmIRunning.swift | |
// https://gist.github.com/mvarie/63455babc2d0480858da | |
// | |
// ### Detects whether we're running in a Simulator, TestFlight Beta or App Store build ### | |
// | |
// Based on https://github.com/bitstadium/HockeySDK-iOS/blob/develop/Classes/BITHockeyHelper.m | |
// Inspired by http://stackoverflow.com/questions/18282326/how-can-i-detect-if-the-currently-running-app-was-installed-from-the-app-store | |
// Created by marcantonio on 04/11/15. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/webrtc/base/posix.cc b/webrtc/base/posix.cc | |
index 0eb24ee..7e48273 100644 | |
--- a/webrtc/base/posix.cc | |
+++ b/webrtc/base/posix.cc | |
@@ -44,7 +44,7 @@ enum { | |
bool RunAsDaemon(const char *file, const char *const argv[]) { | |
// Fork intermediate child to daemonize. | |
- pid_t pid = fork(); | |
+ pid_t pid = -1; |